Checking. I do not see any difference on my map.
Use the position which is shown to you, type it in the search box in the top right, enter
46.86142303391921, -121.76076756469502
Still trying to figure this out. If I get the lng/lat of Mt Rainier Lat: 46.8523 Lng: -121.7603 it places the box in the correct location on the UE landscape. If I enter these coordinates in the search box it places a pin in the same location on the map. If I hover my cursor over the pin in the map the long/lat displayed is off. Short story is everything is working as it should in UE, I just don’t know why the mouse pointer coordinates seem off.
The pin location is in the correct position for Mt. Rainier 46.8523, -121.7603. But if you look at my mouse lng/lat they are off. Any ideas why?
To get lat 8523 this is where my mouse has to be
Well, the more you are away from the object(zoom), the more Y offset you get for your mouse location. I did not look at any code for the map. Where did you implement the mouse location function? The picture where I showed Seattle was 70miles off
I am using the same code demonstrated in the page to get the mouse lng/lat
Get coordinates of the mouse pointer | Mapbox GL JS | Mapbox
My mouse point lng/lat matches with the code above from mapbox
Does this help at all?
I really don’t know.
- Maybe a bounds error
- The mouse location gets also resized like the map
- Rotation error
- …
Ok. Hey, thank you so much again. Would you mind if I list you in the credits for contributing to this project?
You can if you want to.
About the plugin: What happens if you try to place a marker on the map via a mapbox function? Does this show a correct location?
I will give it a try
Tested a drop pin coordinates and it works perfectly. It seems to be getting the real lng/lat without any zoom issues. Since I do not really need a point that you click on but instead the geosjon coordinates everything works as expected. The geojson coordinates are real world lng/lat without any zoom so everything moves to the correct UE XY based on lng/lat.
Thank you again for your help. Cheers!
Just an update. Thank you very much for all your hard work. I was able to import a part of the road shown on the map to the Unreal Landscape. It places the start of the road in the correct position and created the spline road as expected. I think I will need to maybe only take every other point as to get it to look correct.