<jupyter_start><jupyter_text>[![image](https://colab.research.google.com/assets/colab-badge.svg)](https://githubtocolab.com/giswqs/leafmap/blob/master/examples/notebooks/01_leafmap_intro.ipynb)[![image](https://mybinder.org/badge_logo.svg)](https://gishub.org/leafmap-binder)**Introducing the leafmap Python package for interactive mapping**Uncomment the following line to install [leafmap](https://leafmap.org) if needed.<jupyter_code># !pip install leafmap<jupyter_output><empty_output><jupyter_text>`leafmap` has four plotting backends: [folium](https://github.com/python-visualization/folium), [ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet), [here-map](https://github.com/heremaps/here-map-widget-for-jupyter), and [kepler.gl](https://docs.kepler.gl/docs/keplergl-jupyter). Note that the backends do not offer equal functionality. Some interactive functionality in `ipyleaflet` might not be available in other plotting backends. To use a specific plotting backend, use one of the following:- `import leafmap.leafmap as leafmap`- `import leafmap.foliumap as leafmap`- `import leafmap.heremap as leafmap`- `import leafmap.kepler as leafmap`<jupyter_code>import leafmap<jupyter_output><empty_output><jupyter_text>Create an interactive map.<jupyter_code>m = leafmap.Map()
m<jupyter_output><empty_output><jupyter_text>Specify the default map center and zoom level.<jupyter_code>m = leafmap.Map(center=[50, 19], zoom=4)  # center=[lat, lon]
m<jupyter_output><empty_output><jupyter_text>Set the visibility of map controls.<jupyter_code>m = leafmap.Map(
    draw_control=False,
    measure_control=False,
    fullscreen_control=False,
    attribution_control=True,
)
m<jupyter_output><empty_output><jupyter_text>Change the map width and height.<jupyter_code>m = leafmap.Map(height="450px", width="800px")
m<jupyter_output><empty_output><jupyter_text>Use the `ipyleaflet` plotting backend.<jupyter_code>import leafmap.leafmap as leafmap
m = leafmap.Map()
m<jupyter_output><empty_output><jupyter_text>Use the `folium` plotting backend.<jupyter_code>import leafmap.foliumap as leafmap
m = leafmap.Map()
m<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1280373831775701, 'fraction_numerical': 0.006074766355140187, 'mean_word_length': 7.598393574297189, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '53064', 'license': 'MIT', 'n_tokens_mistral': 763, 'n_tokens_neox': 738, 'n_words': 135, 'path': 'examples/notebooks/01_leafmap_intro.ipynb', 'repo_name': 'Piphi5/leafmap', 'size': '2140'}