Open AnaBelgun opened 2 years ago
HI @AnaBelgun
All styling for NOM data is provided by data custodian following GeoJSON simple-style specification.
If you look through the GeoJSON file - https://network-opportunity-maps.s3-ap-southeast-2.amazonaws.com/capacity/test/combined-transmission-powerlines.geojson
You will see that all lines have been set to be gray (or "stroke":"#808080"
)
The searches below show that all 2375 features have the stroke set as "stroke":"#808080"
thanks @nf-s so, the styling changes need to be done by NOM in that GeoJSON file right? I've contacted the custodian and let him know. Thanks again.
Hi @nf-s and @AnaBelgun,
The while the line styling is defined in the geojson, the legend is a static image that is hosted in a UTS s3 bucket (if I recall correctly there was some difficulty in the configuring the colours to do exactly what we wanted and so it was set up this way).
I don't really like the way this is set up and would like to investigate alternatives to solve this particular issue, and to make it easier to maintain in future.
Can you show me where to find the initialisation json for this layer so I can understand how everything gets configured and so I can make changes if necessary?
Also, would it be possible for UTS to host the the initialization files for everything in Energy \ Electricity Infrastructure \ Network Opportunities
? We presently host them for some of our layers, but not all.
Cheers, Joe - UTS
Hi @jwyndham
We now have the ability to dynamically style geoJSON client-side.
For example
At the moment this only applies to fill/line color, but I am currently working on line width styling.
The initialisation JSON for the entire Energy
group in NationalMap is here https://terria-catalogs-public.storage.googleapis.com/nationalmap/catalog/energy/prod.json
The init JSON for the example above is here - https://gist.github.com/nf-s/9a2d49907ac8acd87a3afea4c8e1e5c3#file-aremi-dist-lines-json
If you want to host the Network Opportunities
init JSON, please host this file somewhere
and then send me a URL to the file and I can point the NationalMap Network Opportunities
group at it
Cheers, Nick
User feedback: In this section: Energy \ Electricity Infrastructure \ Network Opportunities \ New Generator Capacity \ Transmission \ Transmission power lines -> although the legend indicates a colour ramp from red to blue (depending on how much New Generation Connection Capacity is available per transmission line), all the lines on the map appear all grey... No way to tell them apart from one another...