@smartmaps/smartmaps-gl / MapOptions
Type Alias: MapOptions
Nur auf Englisch verfügbar
Diese Seite gehört zur technischen API-Referenz. Sie wird automatisch aus dem Quellcode erzeugt und liegt daher ausschließlich auf Englisch vor. Die einführenden Seiten und Leitfäden sind auf Deutsch verfügbar.
MapOptions =
OmitCustomProperties&object&LanguageMapOptions&TerrainMapOptions
The Map options object
Type Declaration
apiKey
apiKey:
string
channel?
optionalchannel?:string|null
Customer specific value
Default Value
contextmenu?
optionalcontextmenu?:boolean|ContextMenuOptions
Adds context menu for the map. Context menu items can be different depending on the target.
cooperativeGestures?
optionalcooperativeGestures?:boolean|GestureHandlingOptions|GestureOptions
If true or set to an options object, the map is only accessible on desktop while holding Command/Ctrl and only accessible on mobile with two fingers. Interacting with the map using normal gestures will trigger an informational screen. With this option enabled, "drag to pitch" requires a three-finger gesture. Cooperative gestures are disabled when a map enters fullscreen using FullscreenControl.
See
Default Value
fullscreenControl?
optionalfullscreenControl?:boolean|FullscreenControlOptions
Control to display map navigation controls. Add zoom controls to the map.
Default Value
geolocateControl?
optionalgeolocateControl?:boolean|GeolocateControlOptions
Control provides a button that uses the browser's geolocation API to locate the user on the map. Add geolocate control to the map.
Default Value
gestureHandling?
optionalgestureHandling?:boolean|GestureHandlingOptions
Control to enable cooperative gestures with a specific language.
Default Value
globeControl?
optionalglobeControl?:boolean|GlobeControlOptions
languageControl?
optionallanguageControl?:boolean|LanguageControlOptions
Control to switch languages dynamically
Default Value
navigationControl?
optionalnavigationControl?:boolean|NavigationControlOptions
Control to display map navigation controls. Add zoom and rotation controls to the map.
Default Value
projection?
optionalprojection?:ProjectionType|string
Defines in which kind of SmartmapsProjectionType the map is initialized If set to auto, value will be taken from style, if undefined there fallback is mercator
Default Value
setRTLTextPlugin?
optionalsetRTLTextPlugin?:boolean|string
Defines whether RTLTextPlugin should be used. If true or url in RTLTextPlugin is undefined, the default is used.
Default Value
smartmapsLogo?
optionalsmartmapsLogo?:boolean
Specifies whether the SmartmapsLogoControl should be visible.
Default Value
style?
optionalstyle?:SmartmapsMapStyle|StyleSpecification|string
If a SmartmapsMapStyle, it will append the style to the styleUrl. if a maplibre StyleSpecification, it will use this specification if a string it will use this as styleUrl
Default Value
styleControl?
optionalstyleControl?:boolean|StyleControlOptions
Control to switch styles dynamically
Default Value
zoomControl?
optionalzoomControl?:boolean
Controls to zoom in and out of the map. Add fullscreen control to the map.