Commit 4afea8b8 authored by Italo Mairo's avatar Italo Mairo
Browse files

Revert "Issue #3252629 by hswong3i: Add domoritz/leaflet-locatecontrol Support"

This reverts commit 76aa9177.
parent 0e232371
Loading
Loading
Loading
Loading
+3 −20
Original line number Diff line number Diff line
@@ -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'
@@ -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'
@@ -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'
+0 −7
Original line number Diff line number Diff line
@@ -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) {
+1 −1
Original line number Diff line number Diff line
@@ -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});
      }

+0 −14
Original line number Diff line number Diff line
@@ -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
+0 −10
Original line number Diff line number Diff line
@@ -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