Skip to content

Commit

Permalink
Some updates from 1.0dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Fairgrieve authored and Scott Fairgrieve committed Dec 19, 2016
1 parent b7a8b2a commit f811793
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
24 changes: 12 additions & 12 deletions dist/leaflet-dvf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5548,18 +5548,20 @@ L.DataLayer = L.LayerGroup.extend({

var latlng = e.latlng || e.target._latlng;

var tooltip = new L.Marker(latlng, {
icon: icon
});
if (self.options.showLegendTooltips) {
var tooltip = new L.Marker(latlng, {
icon: icon
});

self.addLayer(tooltip);
self.addLayer(tooltip);

if (self.tooltip) {
self.removeLayer(self.tooltip);
self.tooltip = null;
}
if (self.tooltip) {
self.removeLayer(self.tooltip);
self.tooltip = null;
}

self.tooltip = tooltip;
self.tooltip = tooltip;
}

if (setHighlight) {
layerOptions = setHighlight(layerOptions);
Expand Down Expand Up @@ -5764,9 +5766,7 @@ L.DataLayer = L.LayerGroup.extend({
layer = this._getIndexedLayer(this._layerIndex, location, layerOptions, record);

if (layer) {
if (this.options.showLegendTooltips) {
this._bindMouseEvents(layer, layerOptions, legendDetails);
}
this._bindMouseEvents(layer, layerOptions, legendDetails);

if (this.options.onEachRecord) {
this.options.onEachRecord.call(this, layer, record, location, this);
Expand Down
2 changes: 1 addition & 1 deletion dist/leaflet-dvf.markers.min.js

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

Loading

0 comments on commit f811793

Please sign in to comment.