Marker not displaying

Hello!

I am using a Marker to display contents in a specific area. However, it does not show up, or sometimes shows up really quickly when i refresh the browser. It immediately goes away. This is the only thing i have in my code. I noticed that when the coordinates are outside of the bulding it works fine, but when the coordinates are inside the building (airport), it does not display.

mapView.Markers.add(new Coordinate(51.13155,-114.01152),Test)

My zoom level is at 17.37 and Bearing at 230 - Even adjusting the zoom level does not work.

Hope you can help,

Thank you!

Does your map have multiple floors? The default behaviour is to show Markers and Labels for the current floor. It’s possible the Marker is being added to a floor that isn’t the current one and it’s being hidden. To correct this, specify the floorId when creating the coordinate (i.e. set it to the current floor). Creating a coordinate using MapView.createCoordinate will do this for you.

1 Like

Hi Mark,

That worked - thank you!