rosegeomap
In [10]:
import rosegeomap
from rosegeomap.utils import random_string
In [14]:
m = rosegeomap.Map()
m
In [15]:
style = {
"stroke": True,
"color": "#ff0000",
"weight": 2,
"opacity": 1,
"fill": True,
"fillColor": "#00ff00",
"fillOpacity": 0.5,
}
In [16]:
states_geojson = "C:/Users/14234/lab6demo/examples/data/us_states.geojson"
In [17]:
m.add_geojson(states_geojson,style = style, layer_name="states")
In [18]:
style2= {
"stroke": True,
"color": "#0000ff",
"weight": 2,
"opacity": 1,
"fill": True,
"fillColor": "#00ff00",
"fillOpacity": .5
}
In [7]:
countries_shp = "C:/Users/14234/lab6demo/examples/data/countries.shp"
In [8]:
m.add_shapefile(countries_shp, style=style2, layer_name="Shapefile")
In [9]:
random_string()
Out[9]:
'gkg'
In [ ]:
Last update: 2021-05-05