Hi
I want to add a custom point in the map based on a given latitude and longitude.
From my understanding of the documentation, i can easily do that with the primitive , because it says
Adds a point at a specified lat/lng to the
<lightship-map>
. This primitive element should be a child of<lightship-map>
. This can be used to add custom content at a point in the map, and its position can be updated over time, e.g. to lerp between lat/lng coordinates.
So here is what i did
<lightship-map
id="m"
scale="100 100 100"
map-debug-controls
lightship-map-theme="theme: nighttime"
map-add-point-component
lightship-map-add-wayspots="primitive: a-cylinder; meters: 10;">
<a-cone
rotation="-90 0 0"
material="color: #CFFF04; metalness: .7; roughness: 1.0"
height=".02"
radius-top="0"
radius-bottom=".005"
lightship-map-motion-direction>
</a-cone>
<lightship-map-point
id="yes"
lat-lng="45.53106 -73.610142"
meters="5"
min="0"
lightship-map-point>
<a-cone
material="color: #FF0000; metalness: .7; roughness: 1.0"
height=".02"
radius-top="0"
radius-bottom=".005">
</a-cone>
</lightship-map-point>
</lightship-map>
But i dont get any error but i cant see the cone anywhere. What iβm missing here ?
Thank you very much,
Anna