<jupyter_start><jupyter_text>{%header%} With styles is possbible to customize the presentation of the Google base maps, changing the visual display of such elements as roads, parks, and built-up areas. PyMaps has ten built-in styles. You can find more styles at [Snazzymaps](https://snazzymaps.com/) or [make your own style](https://developers.google.com/maps/documentation/javascript/styling). Table of Contents* [Built-In Styles](builtin)  * [Aubergine](builtin1)  * [Dark](builtin2)   * [Grayscale](builtin3)  * [Night](builtin4)  * [Old](builtin5)  * [Red Berry](builtin6)  * [Retro](builtin7)  * [Silver](builtin8)  * [Water](builtin9)  * [Wine](builtin10)  * [Custom Styles Examples](custom_styles)    * [Customizing the color of the roads](custom_1)    * [Removing all text labels](custom_2)<jupyter_code>import os

from pymaps.pymaps import Map
API_KEY = os.environ['MAPS_API_KEY']
map_settings = {'api_key': API_KEY,
                'zoom': 12,
                'disable_default_ui': True,
                'show_pegman': False,
                'show_zoom_control': True}<jupyter_output><empty_output><jupyter_text>Buitin Styles  Aubergine<jupyter_code>new_york = (40.7128, -74.0060)
Map(center=new_york, style='aubergine', **map_settings)<jupyter_output><empty_output><jupyter_text>Dark<jupyter_code>madrid = (40.4168, -3.7038)
Map(center=madrid, style='dark', **map_settings)<jupyter_output><empty_output><jupyter_text>Grayscale<jupyter_code>paris = (48.8566, 2.3522)
Map(center=paris, style='grayscale', **map_settings)<jupyter_output><empty_output><jupyter_text>Night<jupyter_code>ottawa = (45.4215, -75.6972)
Map(center=ottawa, style='night', **map_settings)<jupyter_output><empty_output><jupyter_text>Old<jupyter_code>jerusalem = (31.7683, 35.2137)
Map(center=jerusalem, style='old', **map_settings)<jupyter_output><empty_output><jupyter_text>Red Berry<jupyter_code>brasilia = (-15.79, -47.88)
Map(center=brasilia, style='redberry', **map_settings)<jupyter_output><empty_output><jupyter_text>Retro<jupyter_code>rome = (41.9028, 12.4964)
Map(center=rome, style='retro', **map_settings)<jupyter_output><empty_output><jupyter_text>Silver<jupyter_code>cape_town = (-33.9249, 18.4241)
Map(center=cape_town, style='silver', **map_settings)<jupyter_output><empty_output><jupyter_text>Water<jupyter_code>sidney = (-33.8688, 151.2093)
Map(center=sidney, style='water', **map_settings)<jupyter_output><empty_output><jupyter_text>Wine<jupyter_code>beijing = (39.9042, 116.4074)
Map(center=beijing, style='wine', **map_settings)<jupyter_output><empty_output><jupyter_text>Custom Styles Examples  Customizing the color of the roads<jupyter_code>{% raw %}GOLDEN = '#FFD700'

color_road = '''[
  {{
    "featureType": "road",
    "elementType": "geometry",
    "stylers": [
      {{
        "color": "{}"
      }}
    ]
  }}
]'''

Map(center=ottawa, style=color_road.format(GOLDEN), **map_settings){% endraw %}<jupyter_output><empty_output><jupyter_text>Removing all text labels<jupyter_code>no_labels = '''[
  {
    "featureType": "all",
    "elementType": "labels",
    "stylers": [
      { "visibility": "off" }      
    ]
  }
]'''

Map(center=ottawa, style=no_labels, **map_settings)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15982587064676618, 'fraction_numerical': 0.041666666666666664, 'mean_word_length': 6.4295612009237875, 'pattern_counts': {'":': 8, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 2, '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': '13', 'dir': 'jupyter-structured-clean-dedup', 'id': '108908', 'license': 'MIT', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1220, 'n_words': 180, 'path': 'docs/templates/tpl-map-styles.ipynb', 'repo_name': 'rafpyprog/pygmaps', 'size': '3216'}