-
|
Hello, I am now using a GeoJSON layer to visualize the temperature of each state. I have included the temperature data in the geojson file as a property I know I can use The other way I can think of is to use JavaScript, in which I can select each state element and their Could you tell me which way work and give me some ideas on how to implement it? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hey @Sonia-96 thanks for your question. As you've discovered, the |
Beta Was this translation helpful? Give feedback.

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.