Closed atiris closed 6 years ago
I think this is more a problem with the event-emitting and syncing of the model and the view of angular. I would promise, that the positions are correct when you move your mouse randomly over the app (the app emits the mouse events and keep everything in sync).
Try to solve it with an Observable or an EventEmitter...
Closed because this issue seems to be staled...
Hi, I use yaga-map component this way in html: (angular 5)
Initial coordinates set in component.ts file is loaded correctly. Every change to place where new coordinates are not visible is correct, but when new coordinates are on the visible area of map, then map start moving, change back coordinates to temporary values and stop moving before go to target value. So if visible area for lat is from 0 to 15 (actual point is 7) and you wan to move to point 14. You can go to 8, or to 9, or maybe to 14 but it is not always the same value. yaga map update lat back to 8 when starting move and stop. You can test it with zoom 8 and move between Paris Rennes and Guernsey.
Part of constructor in my component.ts file:
Moving between Roma and Paris is OK. Paris is centered. But move between Paris, Renness and Guermesey can end in any point between this places.
So how to set target lat and lng values and disable temporary changes from moving. I want to end with this values, not with values between actual value and my target value.
Thanks for help.