Skip to content
Advertisement

Display Multiple Markers on OpenLayers 5 dynamically with Pop-up window

I am trying to display two Markers on the Map which i already saved in an array. I want the Markers to be dynamically displayed and with a Pop-up window for each one. here is the code i wrote and edited from my Last question. I get nothing displayed on the Map, can somebody fix the problem?, I have tried many things but nothing seems to be working. I am really newbie to Maps.

JavaScript

Advertisement

Answer

event.target.getFeatures() is used for select interactions. For pointermove on a map try replacing

JavaScript

with

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement