Skip to content

How to customize GeoJSON lines / poly-lines #328

Answered by iacisme
iacisme asked this question in Q&A
Discussion options

You must be logged in to vote

Hey guys, I figured it our. You pass a basic dictionary to the style parameter. Here is my code:

Loading Nord Stream 1 Route

# Load Nord Stream 1 pipeline routing into memory
nord_stream_1_geojson_file_path = './map_data/nordstream_1_full.geojson'

# Add pipeline route to the map
base_map.add_geojson(nord_stream_1_geojson_file_path,
                     layer_name = 'Nord Stream 1',
                     style = {"color" : "darkblue",
                              "weight" : 4,
                               },
                     info_mode = False,
                    )

Loading Nord Stream 2 Route

# Load Nord Stream 2 pipeline routing into memory
nord_stream_2_geojson_file_path = './map…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by iacisme
Comment options

You must be logged in to vote
0 replies
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