@deevroman commented on this pull request.
> @@ -116,6 +116,7 @@ L.OSM.Map = L.Map.extend({
} else {
this.removeLayer(this.baseLayers[i]);
}
+ this.fire("baselayerchange", { layer: this.baseLayers[i] });
Implemented a check that there is already a layer on the map. But the code
doesn’t look so attractive anymore, so it might be better to add add/remove
handlers for all base layers.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5474#discussion_r1917556039
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5474/review/2554534...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev