Skip to content

Commit

Permalink
expose setOptions and redraw methods (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Aug 24, 2016
1 parent 005419d commit bb50722
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debug/sample.html
Expand Up @@ -58,7 +58,7 @@
var map = L.map('map').setView([ 40.706, -73.926], 14);

L.esri.basemapLayer('Gray').addTo(map);
L.esri.Heat.featureLayer({
var heatLayer = L.esri.Heat.featureLayer({
url: 'https://services.arcgis.com/rOo16HdIMeOBI4Mb/ArcGIS/rest/services/Graffiti_Reports/FeatureServer/0',
radius: 12
}).addTo(map);
Expand Down
8 changes: 8 additions & 0 deletions src/HeatmapFeatureLayer.js
Expand Up @@ -83,6 +83,14 @@ export var FeatureLayer = FeatureManager.extend({
}

this.heat.setLatLngs(newLatLngs);
},

setOptions: function (options) {
this.heat.setOptions(options);
},

redraw: function () {
this.heat.redraw();
}

});
Expand Down

0 comments on commit bb50722

Please sign in to comment.