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

Is there anyway to change a markers height offset from the marker renderer options? #42

Open
jabusir opened this issue Sep 23, 2020 · 2 comments
Labels
question Further information is requested

Comments

@jabusir
Copy link

jabusir commented Sep 23, 2020

Is it possible to create two layers with this by placing two markers at the same location, but elevating one above the other?

@chrisrzhou
Copy link
Owner

@jabusir, this is not supported (markerOffsetRadiusScale applies to all markers but not individual markers). It might be possible for me to read this property on each marker and use it as a override to the value set in options, but probably not willing to support this unless it's more broadly needed.

Feel free to fork the repo and adjust this for your needs if it works out!

Another potential option is to render custom markers options.markerRenderer. The globe will help you place markers in the appropriate places, but you can control rendering using a custom renderer. You probably have to do some trigonometry on your side to determine how to place the marker at a specific elevated height.

@chrisrzhou chrisrzhou added the question Further information is requested label Sep 25, 2020
@jabusir
Copy link
Author

jabusir commented Sep 28, 2020

Hi Chris,

Thank you for your response. That was really insightful.

Also had another question, hope you don't mind me dropping it here, but can globeBackgroundTexture and other textures be set to assets that are on my machine or do the assets have to be hosted on the web. Thanks again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants