logo
API Documentation
Tutorials
Getting Started Initialization Layers Third party Controls Geometries Vector styles Measures InfoBox Utils
Releases

Tutorials

  • Getting Started
    • Setup
  • Initialization
    • Init with token
    • Init with username/password
    • Init with constrained zoom levels
    • Init empty map
    • Init with multiple maps
    • Init in 3D mode
    • Init with image 3D mode
    • Init map with a restricted extent
  • Layers
    • XYZ Tile
    • WMS Tile
    • WMTS Tile
    • Vector Layer
    • Vector Tiles
    • WFS Layer
    • ArcGIS Feature
    • Group Layer
  • Third party
    • Google
    • Google side by side
    • Cesium
  • Controls
    • Basics
    • Map modes
    • Map orientations
    • Layer control
    • Zoom control
    • Map Bar Control
    • Map Button
    • Map Toggle
    • Vexcel image metadata
    • Vexcel find collection
    • Vexcel show collection
    • Vexcel Infrared
    • Brightness and Contrast Control
  • Geometries
    • Point
    • Line
    • Polygon
    • MultiPolygon
    • WKT reader
    • GeoJSON reader
    • Feature click
    • Feature hover
  • Vector styles
    • Polygon styles
    • Point styles
    • Point shapes styles
    • Text styles
    • Feature styles
  • Measures
    • 2D mode
    • 3D mode
    • Change units
    • Edit
    • Tooltips
    • Custom Tooltips
  • InfoBox
    • InfoBox fixed
    • InfoBox on click
    • InfoBox feature
  • Utils
    • Transform

Tutorial

Init with constrained zoom levels


This tutorial demonstrates how to initialize a Vexcel map with constrained zoom levels. Zoom level constraints allow you to control the minimum and maximum zoom levels that users can access, ensuring appropriate detail levels for your specific application needs.

You'll learn how to:

  • Set maximum zoom level constraints to prevent users from zooming in too closely
  • Set minimum zoom level constraints to prevent users from zooming out too far
  • Configure both constraints simultaneously for complete zoom control
  • Understand when and why to implement zoom constraints in your applications

Zoom level constraints are valuable for applications that need to control the user experience, maintain performance, or ensure appropriate context. By limiting zoom ranges, you can prevent users from accessing detail levels that might be unnecessary, unavailable, or inappropriate for your specific use case, while also ensuring they maintain sufficient context by not zooming out too far.



Classes:

  • Map

index.html

        
      

main.js

        
    

Documentation generated by Vexcel Imaging