Skip to content

Commit

Permalink
Update leaflet libraries:
Browse files Browse the repository at this point in the history
 - Leaflet 1.6.0
 - Leaflet.markercluster 1.4.1
 - leaflet-providers 1.9.1

Removes the grayscale OSM base layer option.
  • Loading branch information
zerocrates committed Apr 16, 2020
1 parent b3a0f1a commit 6e15ec4
Show file tree
Hide file tree
Showing 15 changed files with 15,230 additions and 820 deletions.
4 changes: 4 additions & 0 deletions GeolocationPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ public function hookUpgrade($args)
}
if (version_compare($args['old_version'], '3.1', '<')) {
set_option('geolocation_geocoder', self::DEFAULT_GEOCODER);

if (get_option('geolocation_basemap') == 'OpenStreetMap.BlackAndWhite') {
set_option('geolocation_basemap', self::DEFAULT_BASEMAP);
}
}
}

Expand Down
1 change: 0 additions & 1 deletion config_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
echo $view->formSelect('basemap', get_option('geolocation_basemap'), array(), array(
__('OpenStreetMap') => array(
'OpenStreetMap' => __('Standard'),
'OpenStreetMap.BlackAndWhite' => __('Grayscale'),
'OpenStreetMap.HOT' => __('Humanitarian'),
),
__('OpenTopoMap') => array(
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 6e15ec4

Please sign in to comment.