angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

Disable mouseover interaction on geojson overlay layer #277

Closed MichaelMarkieta closed 7 years ago

MichaelMarkieta commented 8 years ago

How would I go about disabling the mouseover interaction on a polygon geojson layer:

$http.get("assets/data/states.geojson")
  .success(function (data) {
    angular.extend(vm.layers.overlays, {
      states: {
        name: 'States',
        type: 'geoJSONShape',
        data: data,
        visible: true,
        layerOptions: {
          style: {
            color: '#444',
            weight: 1.0,
            opacity: 1.0
          }
        }
      }
    });
  })