Closed lwih closed 10 years ago
Do the maps have different gm-map-ids? If they are all the same then the directive will use the same underlying map.
Beyond that I would need a plunker or jsfiddle demonstrating the issue to investigate further.
Marking this as closed. If you're still having this issue send me a plunker/jsfiddle and I can take a look.
Hey,
To cut the story short, I have to display several maps on a single page, each of them having different bounds coord, according to the data sent from the backend.
When I update my bounds, there are set correctly in my controller and then sent to the directives but sadly, are overwritten by the gmBounds watcher and therefore the updateScope function. This sets the same bounds to all the maps.
FYI, when removing the maps from the loop, it works like a charm.
I'll take a look later on, more deeply into that but if you have something in mind, let's work on that together.
Regards,
Louis