ProtectedconstructorReadonly$iThe instance of RampMap API scoped to a single Vue R4MP application.
Indicates if the map has been created
The internal esri map view. Changes from outside of RAMP may break the instance. Use caution.
Any map labels defaulting
Identifies the map. Primarily used for debugging.
A promise that resolves when the map view has been created
ProtectedabstractProtectedapplyProtectedApplies the given basemap (or basemap with given id) to the esri map Throws error if basemap could not be found with the given id
the basemap id or object
resolves when the basemap has been applied
Will generate the actual Map control objects and construct it on the page
the config for the map
the div to be used for the map view
resolves when the map has been created
ProtectedcreateProtectedWill generate a ESRI map view and add it to the page Can optionally provide the basemap or basemap id to be used when creating the map view
This method should be overidden by other map sub-classes
Optionalbasemap: string | Basemapthe id of the basemap that should be used when creating the map view
resolves when the map view has been created.
ProtecteddestroyProtectedDestroys the ESRI map
ProtecteddestroyProtectedDestroys the ESRI map view
ProtectedfindProtectedSearches the local basemap list for a basemap with the given id Throws error if basemap could not be found
basemap id
resolves with the found basemap
Get the id of the currently used basemap Returns undefined if there is no map
current basemap id
Get the height of the map on the screen in pixels
pixel height
Get the width of the map on the screen in pixels
pixel width
Provides the resolution of the map. This means the number of map units that is covered by one pixel.
the map resolution
Provides the scale of the map (the scale denominator as integer)
the map scale
Provides the spatial reference of the map
the map spatial reference in RAMP API format
Provides the zoom level of the map
the map zoom level
ProtectednoWill attempt to change to another basemap if the very first basemap failed. If nothing is defined, will do nothing but manage our watching state.
This method is overidden as needed
the basemap schema id (where the fallback is defined)
resolves after recovery has initiated
Reloads the map with the given map config and target div. This breaks down and re-creates the internal map state.
the config for the map
the div to be used for the map view
resolves when the map has been re-created. Layers may still be loading.
AbstractsetSet the map's basemap to the basemap with the given id. If the new basemap's tile schema differs from the current one, the map view will be refreshed
The returned boolean indicates if the schema has changed.
This method should be overidden by child map classes
the basemap id
resolves with boolean indicates if the schema has changed
Set's the map's pointZoomScale value to newScale. If newScale is not a positive number, a console error is thrown.
The returned boolean indicates if the value has been successfully set.
the new pointZoomScale value, which must be a positive number
indicates if the value was set successfully
Zooms the map to a given geometry.
A RAMP API geometry to zoom the map to
Optionalscale: numberAn optional scale value of the map. Is ignored for non-Point geometries
Optionalanimate: boolean = trueOption to turn off the zoom animation. On by default
Optionalduration: number = 200Option to change animation duration (in milliseconds). Default of 200. Ignored if animate is off.
Optionaleasing: ZoomEasing = 'ease'Option to change animation easing function. Default of 'ease'. Ignored if animate is off.
A promise that resolves when the map has finished zooming
A base class for anything requiring access to the InstanceApi and instance of Vue app controlled by it.
Export
APIScope