-
Notifications
You must be signed in to change notification settings - Fork 42
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
Styling geodata dynamically and media queries #209
Comments
Hi, https://github.com/melowntech/vts-browser-js/wiki/Examples Related examples are: Geodata with dynamic renderThis example is showing how to combine geodata with dynamically rendered features. Geodata - Hover eventsExample showing how to work with hover events. Geodata - Click eventsExample showing how to work with click events. Geodata - Click and hover eventsExample showing how to combine click and hover events. Geodata - Advanced hover eventsExample showing how to work with advanced hover events. Documentation for geodata styles: I hope it helps. |
You can definitely change the style dynamically, for debug purpose, you can use the embedded inspector: To access the style editor: Ctrl+Shift+D then Shift+E In addition to the davidmtech's links, I would add the following: Hope that helps and don't hesitate to share with us your map :) |
Thanks for the example, that always help. However, the only type of interaction that allows you to modify geodata style in those examples are click and hover events, and even then only on the map. |
2022, All the links are DEAD! |
Yes it's a shame. Last time I checked, it was just the melown cloud service that was not kept up. All the rest still works. If you replace the mapconfig.json link with an instance of your own vts backend, all the links should work fine. |
Hi
I was trying to think how I could dynamically change the styling of geodata. If the styling was html/css, I would probably create a class and add the class to the element when the style change was necessary. How would you go about it for geodata?
I also had a quick look in the docs for something similar to media queries in geodata styling but couldn't find anything. Any tricks that work like @media (hover: hover) { //style here..}.
The text was updated successfully, but these errors were encountered: