Loading config/schema/leaflet.schema.yml +3 −20 Original line number Diff line number Diff line Loading @@ -14,6 +14,9 @@ field.widget.settings.leaflet_widget_default: height: type: integer label: 'Height' locate: type: integer label: 'Locale' auto_center: type: integer label: 'Automatically center map' Loading Loading @@ -119,16 +122,6 @@ field.widget.settings.leaflet_widget_default: options: type: text label: 'Options' locate: type: mapping label: 'Leaflet Locate' mapping: control: type: boolean label: 'Control' options: type: text label: 'Options' path: type: text label: 'Path' Loading Loading @@ -349,16 +342,6 @@ field.formatter.settings.leaflet_formatter_default: options: type: text label: 'Options' locate: type: mapping label: 'Leaflet Locate' mapping: control: type: boolean label: 'Control' options: type: text label: 'Options' path: type: text label: 'Path' Loading js/leaflet.drupal.js +0 −7 Original line number Diff line number Diff line Loading @@ -164,13 +164,6 @@ ).addTo(self.lMap); } // Add Locate Control, if requested. if (self.settings.locate.control) { L.control.locate( JSON.parse(self.settings.locate.options) ).addTo(self.lMap); } }; Drupal.Leaflet.prototype.initialise_layer_control = function(mapid) { Loading js/leaflet.widget.js +1 −1 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ if (value.length === 0) { // If no layer available, locate the user position. if (this.settings.locate.control && !this.settings.map_position.force) { if (this.settings.locate && !this.settings.map_position.force) { this.map.locate({setView: true, maxZoom: 18}); } Loading leaflet.libraries.yml +0 −14 Original line number Diff line number Diff line Loading @@ -105,17 +105,3 @@ leaflet.geocoder: dependencies: - core/drupal.autocomplete - leaflet/leaflet-drupal leaflet.locate: remote: https://github.com/domoritz/leaflet-locatecontrol license: name: MIT url: https://raw.githubusercontent.com/domoritz/leaflet-locatecontrol/gh-pages/LICENSE gpl-compatible: yes css: component: /libraries/leaflet.locatecontrol/dist/L.Control.Locate.min.css: { minified: true } js: /libraries/leaflet.locatecontrol/dist/L.Control.Locate.min.js: { minified: true } dependencies: - leaflet/leaflet modules/leaflet_views/config/schema/leaflet_views.style.schema.yml +0 −10 Original line number Diff line number Diff line Loading @@ -177,16 +177,6 @@ views.style.leaflet_map: options: type: text label: 'Options' locate: type: mapping label: 'Leaflet Locate' mapping: control: type: boolean label: 'Control' options: type: text label: 'Options' path: type: string label: 'Path' Loading Loading
config/schema/leaflet.schema.yml +3 −20 Original line number Diff line number Diff line Loading @@ -14,6 +14,9 @@ field.widget.settings.leaflet_widget_default: height: type: integer label: 'Height' locate: type: integer label: 'Locale' auto_center: type: integer label: 'Automatically center map' Loading Loading @@ -119,16 +122,6 @@ field.widget.settings.leaflet_widget_default: options: type: text label: 'Options' locate: type: mapping label: 'Leaflet Locate' mapping: control: type: boolean label: 'Control' options: type: text label: 'Options' path: type: text label: 'Path' Loading Loading @@ -349,16 +342,6 @@ field.formatter.settings.leaflet_formatter_default: options: type: text label: 'Options' locate: type: mapping label: 'Leaflet Locate' mapping: control: type: boolean label: 'Control' options: type: text label: 'Options' path: type: text label: 'Path' Loading
js/leaflet.drupal.js +0 −7 Original line number Diff line number Diff line Loading @@ -164,13 +164,6 @@ ).addTo(self.lMap); } // Add Locate Control, if requested. if (self.settings.locate.control) { L.control.locate( JSON.parse(self.settings.locate.options) ).addTo(self.lMap); } }; Drupal.Leaflet.prototype.initialise_layer_control = function(mapid) { Loading
js/leaflet.widget.js +1 −1 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ if (value.length === 0) { // If no layer available, locate the user position. if (this.settings.locate.control && !this.settings.map_position.force) { if (this.settings.locate && !this.settings.map_position.force) { this.map.locate({setView: true, maxZoom: 18}); } Loading
leaflet.libraries.yml +0 −14 Original line number Diff line number Diff line Loading @@ -105,17 +105,3 @@ leaflet.geocoder: dependencies: - core/drupal.autocomplete - leaflet/leaflet-drupal leaflet.locate: remote: https://github.com/domoritz/leaflet-locatecontrol license: name: MIT url: https://raw.githubusercontent.com/domoritz/leaflet-locatecontrol/gh-pages/LICENSE gpl-compatible: yes css: component: /libraries/leaflet.locatecontrol/dist/L.Control.Locate.min.css: { minified: true } js: /libraries/leaflet.locatecontrol/dist/L.Control.Locate.min.js: { minified: true } dependencies: - leaflet/leaflet
modules/leaflet_views/config/schema/leaflet_views.style.schema.yml +0 −10 Original line number Diff line number Diff line Loading @@ -177,16 +177,6 @@ views.style.leaflet_map: options: type: text label: 'Options' locate: type: mapping label: 'Leaflet Locate' mapping: control: type: boolean label: 'Control' options: type: text label: 'Options' path: type: string label: 'Path' Loading