Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

osb: Call parents onAdd directly

  • Loading branch information...
commit c5b5cfcdd4bd5a88efd62d5e9e49100d7648a11b 1 parent b433e35
Pavel Shramov authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 layer/OpenStreetBugs.js
View
4 layer/OpenStreetBugs.js
@@ -39,9 +39,9 @@ L.OpenStreetBugs = L.FeatureGroup.extend({
onAdd : function(map)
{
- this._map = map;
+ L.FeatureGroup.prototype.onAdd.apply(this, [map]);
+
this._map.on("moveend", this.loadBugs, this);
- this._iterateLayers(map.addLayer, map);
this.loadBugs();
if (!this.options.readonly) {
if (this.options.dblClick) {
Please sign in to comment.
Something went wrong with that request. Please try again.