Options
All
  • Public
  • Public/Protected
  • All
Menu

A restriction that can be applied to the Map. The map's viewport will not exceed these restrictions.

Hierarchy

  • MapRestriction

Index

Properties

When set, a user can only pan and zoom inside the given bounds. Bounds can restrict both longitude and latitude, or can restrict latitude only. For latitude-only bounds use west and east longitudes of -180 and 180, respectively, for example, latLngBounds: {north: northLat, south: southLat, west: -180, east: 180}.

strictBounds?: boolean

Bounds can be made more restrictive by setting the strictBounds flag to true. This reduces how far a user can zoom out, ensuring that everything outside of the restricted bounds stays hidden. The default is false, meaning that a user can zoom out until the entire bounded area is in view, possibly including areas outside the bounded area.

Generated using TypeDoc