function leaflet_geojson_map_pane_fetch_json in Leaflet GeoJSON 7.2
Helper function to retrieve a Views GeoJSON feed without bounding.
File
- plugins/
content_types/ leaflet_geojson.map_pane.inc, line 130
Code
function leaflet_geojson_map_pane_fetch_json($source_info) {
$result = drupal_http_request($source_info['url']);
if (in_array($result->code, array(
200,
304,
))) {
$json_string = isset($result->data) ? $result->data : '';
return drupal_json_decode($json_string);
}
else {
return NULL;
}
}