Strange jump on the map after clicking

I have a strange problem with Maps Here (JS). After you click on the click event on another element of the page (for example: custom bubble or search box), the map will start displaying like in the gif below

Example: https://i.imgur.com/kKrtwMj.gif

Any idea?

thank

+3


source to share


1 answer


I found a temporary solution.

It consists of re-creating the H.mapevents.MapEvents and H.mapevents.Behavior object when the error occurs.



mapEvents.dispose();
mapEvents = new H.mapevents.MapEvents(map);
behavior = new H.mapevents.Behavior(mapEvents, { kinetics: { duration: 3, power: 1 } });

      

0


source







All Articles