yagajs / leaflet-ng2

Angular.io integration of Leaflet
https://leaflet-ng2.yagajs.org
ISC License
66 stars 26 forks source link

Multiple instances #218

Closed mickeyjohn closed 7 years ago

mickeyjohn commented 7 years ago

Hi, In the case of using mini maps or sync maps, there is a need to use multiple instances of map. Have yaga-leaflet-ng2 supported multiple instance yet?

Really appreciate your great work. Thanks a lot.

atd-schubert commented 7 years ago

Yes, that should be no problem to spawn multiple maps. We create a new DIV element for each component instance (look at map-component line 281)