You are here

function leaflet_render_map in Leaflet 7

DEPRECATED. Use leaflet_build_map() instead.

Load all Leaflet required client files and return markup for a map.

Parameters

array $map: Map definition as returned my leaflet_map_get_info();

array $features: Associative array of map features.

string $height: The height of the map.

Return value

string map markup

File

./leaflet.module, line 179

Code

function leaflet_render_map($map, $features = array(), $height = '400px') {
  $build = leaflet_build_map($map, $features, $height);
  return render($build);
}