Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Pin Altitude #93

Closed
huzeyfecoskun opened this issue Sep 9, 2020 · 1 comment
Closed

Map Pin Altitude #93

huzeyfecoskun opened this issue Sep 9, 2020 · 1 comment
Assignees
Labels

Comments

@huzeyfecoskun
Copy link

@huzeyfecoskun huzeyfecoskun commented Sep 9, 2020

I am writing custom shape drawing module. My question is when i zoom in to map and draw shape then pin it to the map altitude of gameobject is set to "X" then i zoom out the map then draw another shape on same LatLon then pin object. This time the altitude is changing like "Y" so X is not equal to Y but i pin objects to the same coordinate.

What i want is i want to make flat map. No altitude just pin the object on X, Z coordinate and want to keep Y coordinate as i set. How can i do that ?

Thanks in advance.

@kircher1
Copy link
Contributor

@kircher1 kircher1 commented Sep 9, 2020

If the altitude you're pinning the object to is determined by a raycast, that altitude value is going to be based on the current level of detail the map is being rendered at. When zooming out or in, the map data would change and so would the altitude of that specific LatLon.

If you don't need the 3D terrain, you could indeed render a flat map. See the Map Terrain Type for more info. This can be changed through the editor UI too.

If you'd like to continue using the 3D terrain, instead of pinning the object to the exact altitude value, use altiude = 0 and an AltitudeReferenceType of Surface for the MapPin. Then the shape's altitude would be updated to follow the terrain as it changes.

@kircher1 kircher1 closed this Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.