nationalmap icon indicating copy to clipboard operation
nationalmap copied to clipboard

NOM - line colour not matching legend

Open AnaBelgun opened this issue 4 years ago • 4 comments

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...

AnaBelgun avatar Jan 23 '22 21:01 AnaBelgun

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"

image

image

nf-s avatar Mar 07 '22 09:03 nf-s

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.

AnaBelgun avatar Mar 08 '22 05:03 AnaBelgun

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

jwyndham avatar Apr 27 '22 00:04 jwyndham

Hi @jwyndham

We now have the ability to dynamically style geoJSON client-side.

For example

http://ci.terria.io/main/#clean&https://gist.githubusercontent.com/nf-s/9a2d49907ac8acd87a3afea4c8e1e5c3/raw/9e465dee2a1a1ca6f25b63ba2e0c54cf119a0798/aremi-dist-lines.json&share=s-wwMBFInmLnz2NOL9EwpHXNp1CPz

image

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

  • https://gist.githubusercontent.com/nf-s/74daa39c47606965f597ca21b02a2d92/raw/c253a70a60f975f90ee4f7a8e61c5327657a0686/network-opp.json

and then send me a URL to the file and I can point the NationalMap Network Opportunities group at it

Cheers, Nick

nf-s avatar May 11 '22 02:05 nf-s