API Reference

Static Maps

Map Object

StaticMap([position, view, create_fig, ...])

Base static map object.

Methods

get_projection(proj, **kwargs)

Get the map projection.

plot_outter()

Plot the outter border for given countries.

plot_inner()

Plot the inner borders for given countries.

plot_physics()

Add physical features to the map.

plot_pop()

Plot populated areas for given countries.

add_txt(latitude, longitude, text[, data, ...])

Add text to the map.

add_markers(latitude, longitude[, size, ...])

Add markers to the map.

add_legend(marker, legend_pos, plt_kwargs, ...)

Add a legend to the map.

add_choropleth(shp_file, geoid, color[, ...])

Add a choropleth to the map.

add_colorbar([legend_pos, cap_min, cap_max, ...])

Add a colorbar to the map.

add_shp(shp_file[, subset, subset_key, ...])

Add polygons from a shapefile.

savemap(filename[, tight])

Save the map to a file.

Interactive Maps

Map Object

WebMap([scale, title])

Base interactive map object.

Methods

add_basemap([name, tiles, source])

Add a basemap.

add_box([contents, position])

Add a box that with static content.

add_choropleth(json_file, geoid, color[, ...])

Add a choropleth.

add_circles(latitude, longitude[, size, ...])

Add circles in specific locations.

add_geojson(json_file[, subset, subset_key, ...])

Add a GeoJSON file to the map.

add_heatmap(latitude, longitude, intensity)

Add a heatmap to the map.

add_layer_control([position, collapsed, ...])

Add a layer control panel.

add_lines(latitude0, longitude0, latitude1, ...)

Add lines connecting specific locations.

add_logo(source[, position, width, embed])

Add a static image from a file.

add_network(latitude, longitude[, source, ...])

Add nodes connected by edges.

add_overlay(name[, show_start, show_panel, ...])

Add an overlay layer.

add_panel([title, lines, noinfo, position, ...])

Add an information panel.

savemap([outfile])

Create the file containing the map.