Skip to content
  • REST API Mapy.cz
  • Pricing
  • FAQ
  • Further uses of Mapy.cz
  • News
  • Contact
  • My Account
Čeština Search
Help menu
  • REST API Mapy.cz
    • How to start
    • API key
    • Rest API function
      • Map tiles API
        • Map tile consumption
      • Geocoding API
      • Routing API
    • Map libraries
    • Atribution
    • REST API Tutorials
      • How to show map
      • Switching map layers
      • Markers and geometries
      • Routing
      • Geocoding
      • Suggest
      • Reverse geocoding
      • JS Panorama
      • Address validation
      • Aerial map with labels
      • Desaturated map
    • Testing labs
  • JS Panorama
  • JS SDK Mapy.cz
  • My account
    • Project and API keys
    • API key security
    • Financial settings
      • How to turn on paid consumption
    • Seznam Wallet
    • Consumption history
    • User management
  • Pricing
  • Frequently asked questions
  • Further uses of Mapy.cz
    • IFrame – embedding map into your own website
    • Calling the Mapy.cz mobile application
    • Printed products
  • Contact
  • Terms and conditions

  • My account

How to switch map layers

Multiple map layers (e.g., basic and tourist maps) often need to be added to the map simultaneously, allowing users to toggle between them.

The demo is prepared in several Map libraries. Unfold the example from the library you will use for your project.

Leaflet

OpenLayers

MapLibre


Copyright © 1996–2023, Seznam.cz, a.s.