OptionalauthOptionalbaseUrl of NGW server like this https://demo.nextgis.com
OptionalboundsInitial extent of the map, array of degrees in [west, south, east, north] order.
Overrides the center and zoom parameters.
LngLatBoundsArray
OptionalcenterInitial position of the map, array of two degrees [longitude, latitude]. LngLatArray
OptionalcompanyOptionalconnectorOptionalcontrolsList of controls that will be initialized when creating a map instance. It can be defined as a string, then points to the corresponding entry in the controlAdapters.
OptionalcontrolsSet options for those controls that are specified by name.
OptionalcreateАutomatic creation of a map from the constructor
Optionalfitoptions to specify the initial position of the map
OptionalhighlightOptional InternalidentificationGet information from NGW webmap layers by click. TODO: find usage
OptionalmapA pre-initialized instance of the map
OptionalmapThe main initialization property of WebMap. Determines the way of interaction with the selected GIS framework. Available: Leaflet; Openlayers; MaplibreGL
Optionalmapspecial settings for the selected map adapter
OptionalmaxOptionalmaxThe maximum zoom level of the map (0-24).
OptionalminThe minimum zoom level of the map (0-24).
OptionalonThe callback function is calling before adding each layer
OptionalosmShortcut to add OSM baselayer.
OptionalpaintOptionalpixelOptionalqmsId number of resource from QMS. If specified through an array, the first element will be the resource identifier, and the second will be the name for identification in the application.
OptionalresourcesList of NGW resources to be displayed on the map.
The resources list may include:
resource (the comment "also for resource" above refers to it)NgwMap.create({
baseUrl: "https://demo.nextgis.com",
target: "map",
resources: [
// Basemap resource
1665,
// Digital Elevation Model (DEM)-style
4117,
// Hillshade-style
{ resource: 4115, adapter: "TILE", opacity: 0.3 },
// Elevation contours-style
'contours-style',
// Vector from Order boundary-style
{
resource: 4111,
fit: true,
adapter: "GEOJSON",
adapterOptions: { paint: { color: "red", fill: false, weight: 4 } },
},
],
});
OptionalruntimeA way to save the state of a map to external services
OptionalselectedOptionalsetOptionalstarterOne way to extend WebMap functionality with the help of kits.
OptionaltargetThe HTML element in which NgwMap will render the map, or the element's string id. The specified element must have no children.
OptionaltileOptionalviewOptionalwebmapId number of webmap resource from NextGIS Web. If specified through an array, the first element will be the webmapId from NGW, and the second will be the name for identification in the application.
OptionalwhitlabelOptionalwithIndicates whether to include cookies in cross-site Access-Control requests. Note that setting this property has no effect on same-origin requests.
OptionalzoomThe initial zoom level of the map (0-24).
User credentials for authorization in NGW. Provides the ability to display protected resources