Skip to content

How can I hightlight specific conduits? #198

Answered by aerispaha
CedarSnowy asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @CedarTH, currently the swmmio.create_map function is not super flexible, unless you're comfortable playing around with Javascript and the Mapbox GL JS library. To customize the map, you can pass a path to your own basemap file, in which you can customize the Mapbox visualization logic. If you'd like to do this, I recommend starting by modifying a copy of the default basemap file used by swmmio.create_map, which you can download from here.

With a custom basemap, you can run the create_map function like this:

mymodel = swmmio.Model('path/to/model.inp', crs='MYCRSCODE')

swmmio.create_map(mymodel, basemap='path/to/my/basemap.html')

Alternatively, you can create static images of your mod…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@CedarSnowy
Comment options

@aerispaha
Comment options

Answer selected by CedarSnowy
@bemcdonnell
Comment options

@CedarSnowy
Comment options

@bemcdonnell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants