mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Change URL of farm areas geojson feed to /farm/areas/geojson.
This commit is contained in:
parent
da9950ca23
commit
741f10ea93
|
@ -28,7 +28,7 @@ function farm_area_default_openlayers_sources() {
|
|||
$ol_source->description = 'This source is automatically generated by the Farm Area module.';
|
||||
$ol_source->factory_service = 'openlayers.Source:GeoJSON';
|
||||
$ol_source->options = array(
|
||||
'url' => 'farm/areas/json/' . $key,
|
||||
'url' => 'farm/areas/geojson/' . $key,
|
||||
'useBBOX' => 0,
|
||||
'paramForwarding' => 1,
|
||||
'reloadOnZoomChange' => 0,
|
||||
|
|
|
@ -193,7 +193,7 @@ function farm_area_views_default_views() {
|
|||
$handler->display->display_options['style_options']['data_source']['name_field'] = 'name';
|
||||
$handler->display->display_options['style_options']['data_source']['description_field'] = 'farm_area_details';
|
||||
$handler->display->display_options['style_options']['jsonp_prefix'] = '';
|
||||
$handler->display->display_options['path'] = 'farm/areas/json';
|
||||
$handler->display->display_options['path'] = 'farm/areas/geojson';
|
||||
$export['farm_areas_geojson'] = $view;
|
||||
|
||||
return $export;
|
||||
|
|
Loading…
Reference in a new issue