fegyi001 / mangol

Maps created with Angular & OpenLayers using Material design
http://188.166.116.137/mangol/
98 stars 47 forks source link

Multiple instances of mangol #28

Closed Cosmocat closed 5 years ago

Cosmocat commented 5 years ago

Hi, in previous versions I was definitely able to create multiple instances of mangol on same page. It seems like you can't do it anymore in recent version. Is that correct?

fegyi001 commented 5 years ago

I don't really get it. There is no new version of Mangol yet on npm, only the source code was modified (updated to Angular8). What do you mean by 'recent version'?

fegyi001 commented 5 years ago

But I'm surprised that you could create multiple instances of Mangol before. Mangol was not designed for that. This can be done, however, although it requires quite big modifications everywhere in the code.

fegyi001 commented 5 years ago

Well, now there is a new version out (8.1.3, following its Angular version). But, as I said, Mangol was not designed to support multiple instances.

Cosmocat commented 5 years ago

Thanks, I'm pretty sure I was able to do it in v. 1.0.10 by creating components with unique id. Thanks for a clarification anyway!