Skip to content
Discussion options

You must be logged in to vote

Hey @Sonia-96 thanks for your question. As you've discovered, the MapLayout.get_vector_style_map() method is great for styling features by type, but not really much beyond that. For styling by attribute, I'd recommend using custom JavaScript. Behind the scenes, the MapLayout is using the MapGizmo and both provide JavaScript APIs. The MapGizmo provides a TETHYS_MAP_VIEW.getMap() method that returns the underlying OpenLayers map object. Using the map object, you can get access to the layers and set the styles accordingly.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@swainn
Comment options

@Sonia-96
Comment options

Answer selected by Sonia-96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants