You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to add a Great Circle to a FeatureGroup instead of adding it directly to a map, I get this._map.getZoom is not a function. Looking at the addTo method, it becomes clear why that is, as the rendering method needs to get the zoom from the map to decide on how to render the circle, but my limited JS knowledge is insufficient to implement a proper fix.
The text was updated successfully, but these errors were encountered:
I've never used FeatureGroups or LayerGroups so I am not sure at all how they work. As you've noticed this plugin assumes you have added it to a map — I think it would take a lot of retooling to make it addable to other things. Sorry.
I found the same issue. We can get the map with the _map attribute so we can call getZoom() there, but I think maybe it would not be available if the LayerGroup is not added to a map... that makes sense to do nothing then because we don't have anywhere to paint the polygon. We would just need to detect then when the LayerGroup get added to a map.
When trying to add a Great Circle to a FeatureGroup instead of adding it directly to a map, I get
this._map.getZoom is not a function
. Looking at theaddTo
method, it becomes clear why that is, as the rendering method needs to get the zoom from the map to decide on how to render the circle, but my limited JS knowledge is insufficient to implement a proper fix.The text was updated successfully, but these errors were encountered: