Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • pub/geomatique/descartes/demo/d-demomap
1 result
Select Git revision
Show changes
Commits on Source (2)
{
"name": "d-demomap",
"version": "1.0.0",
"version": "1.1.0-RC1",
"license": "SEE LICENSE IN LICENSE.txt",
"scripts": {
"start": "npm run write-settings && webpack-dev-server",
......@@ -20,9 +20,9 @@
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.4.5",
"lodash": "4.17.11",
"@descartes/d-map": "6.0.0",
"@descartes/d-editmap": "6.0.0",
"@descartes/d-inkmap": "6.0.0",
"@descartes/d-map": "6.1.0-RC1",
"@descartes/d-editmap": "6.1.0-RC1",
"@descartes/d-inkmap": "6.1.0-RC1",
"@descartes/d-geoplateforme": "6.0.0-RC2",
"geostyler-openlayers-parser": "2.4.0",
"babel-loader": "^8.0.6",
......
......@@ -177,6 +177,13 @@
rel="noreferrer noopener"
>Couches Descartes Cluster</a
>
<a
class="dropdown-item"
data-link="content_vectortile"
href="?contentType=vectortile"
rel="noreferrer noopener"
>Couches VectorTile</a
>
<div class="dropdown-divider"></div>
<center><h4 class="dropdown-header"><b>Couches d'édition</b></h4></center>
<div class="dropdown-divider"></div>
......
......@@ -11,6 +11,7 @@ import {getInitContextEditionKml} from './initcontext_editionkml'
import {getInitContextEditionGeoJson} from './initcontext_editiongeojson'
import {getInitContextVide} from './initcontext_vide'
import {getInitContextGeoplateforme} from './initcontext_geoplateforme'
import {getInitContextVectortile} from './initcontext_vectortile'
import {
setMapTitle,
setVersionLabel,
......@@ -98,6 +99,8 @@ export async function initialize(descartes) {
context = getInitContextCarto2();
} else if (additionalParams.contentType === "geoplateforme") {
context = getInitContextGeoplateforme();
} else if (additionalParams.contentType === "vectortile") {
context = getInitContextVectortile();
} else if (additionalParams.contentType === "vide") {
context = getInitContextVide();
} else if (additionalParams.contentType === "geojson") {
......@@ -150,6 +153,14 @@ export function initializeMap(descartes,dcontext,dMap, contentType) {
context.mapContent.items.unshift(coucheAnnotations);
}
}
if (contentType === "vectortile") {
//switch open panel
document.body.querySelector('#Legend').className = "";
document.body.querySelector('#legendBtn').className = "";
document.body.querySelector('#mapContentBtn').className = "active";
document.body.querySelector('#mapContent').className = "show";
}
} else {
//switch open panel
document.body.querySelector('#Legend').className = "";
......
export function getInitContextVectortile() {
return {
"map": {
"type": "Discrete",
"div": "map",
"mapParams": {
"maxExtent": [
-20037508,
-20037508,
20037508,
20037508
],
"autoSize": true,
"projection": "EPSG:3857",
"initExtent": [
-800086,
5055726,
1150172,
6772047
],
"minScale": null,
"maxScale": null,
"resolutions": [
/*156543.03,
104362.02,
69574.68000000001,
46383.12,
30922.08,
20614.72,
13743.146666666667,
9162.097777777779,
6108.065185185186,*/
4072.0434567901243,
2714.695637860083,
1809.797091906722,
1206.5313946044814,
804.3542630696543,
536.2361753797695,
357.49078358651303,
238.32718905767535,
158.8847927051169,
105.9231951367446,
70.6154634244964,
47.076975616330934,
31.38465041088729,
20.92310027392486,
13.948733515949906,
9.299155677299938,
6.199437118199959,
4.132958078799972,
2.7553053858666483,
1.8368702572444322,
1.224580171496288,
0.816386780997525,
0.544257853998350,
0.362838569332233,
0.2418923795548223,
0.1612615863698815,
0.1075077242465877,
0.0716718161643918,
0.0477812107762612,
0.0318541405175074,
0.0212360936783383,
0.0141573957855588,
0.0094382638570392,
0.0062921759046928,
0.0041947839364618,
0.0027965226243079
]
}
},
"mapContent": {
"mapContentParams": {
"editable": true,
"editInitialItems": true,
"fctOpacity": true,
"fctDisplayLegend": true,
//"fctMetadataLink": true,
"displayMoreInfos": true,
"displayIconLoading": true
},
"mapContentManager": {
"div": "layersTree",
"contentTools": [
{"type" : Descartes.Action.MapContentManager.ADD_GROUP_TOOL},
{"type" : Descartes.Action.MapContentManager.ADD_LAYER_TOOL},
{"type" : Descartes.Action.MapContentManager.REMOVE_GROUP_TOOL},
{"type" : Descartes.Action.MapContentManager.REMOVE_LAYER_TOOL},
{"type" : Descartes.Action.MapContentManager.ALTER_GROUP_TOOL},
{"type" : Descartes.Action.MapContentManager.ALTER_LAYER_TOOL},
{"type" : Descartes.Action.MapContentManager.ADD_WMS_LAYERS_TOOL}
],
"options": {
"toolBarDiv": "managerToolBar",
"uiOptions": {
"nodeRootTitle": "Contenu de la carte",
"moreInfosUiParams": {
"fctOpacity": false,
"fctDisplayLegend": true,
"displayOnClickLayerName": true
},
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withListResultLayer": true,
"withFilterColumns": true,
"withResultLayerExport": true,
}
}
}
},
"items": [
{
"id": 800000000,
"itemType": "Layer",
"title": "PLAN.IGN sans style (VectorTile)",
"type": 101,
"options": {
"id": "800000000",
"visible": true,
"opacity": 50,
"maxZoom": 19,
"attribution": "©Ign",
"queryable": false
},
"definition": [
{
"serverUrl": "https://data.geopf.fr/tms/1.0.0/PLAN.IGN/{z}/{x}/{y}.pbf"
}
]
},
{
"id": 800000001,
"itemType": "Layer",
"title": "PLAN.IGN EPURE (VectorTile)",
"type": 101,
"options": {
"id": "800000000",
"visible": true,
"opacity": 50,
"maxZoom": 19,
"attribution": "©Ign",
"queryable": false
},
"definition": [
{
"serverUrl": "https://data.geopf.fr/tms/1.0.0/PLAN.IGN/{z}/{x}/{y}.pbf",
"vectorTileStyleName": "plan_ign",
"vectorTileStyleUrl": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/epure.json"
}
]
},
{
"id": 800000002,
"itemType": "Layer",
"title": "MONDE ETALAB (VectorTile)",
"type": 101,
"options": {
"id": "800000000",
"visible": false,
"opacity": 50,
"maxZoom": 19,
"attribution": "©Ign",
"queryable": false
},
"definition": [
{
"serverUrl": "https://openmaptiles.geo.data.gouv.fr/data/planet-vector/{z}/{x}/{y}.pbf",
"vectorTileStyleName": "openmaptiles",
"vectorTileStyleUrl": "https://openmaptiles.geo.data.gouv.fr/styles/osm-bright/style.json"
}
]
},
{
"itemType" : "Group",
"title" : "Fonds de carte",
"options" : {
"opened" : false,
"addedByUser" : false,
"visible" : null
},
"items" : [
{
"id": 820181000,
"itemType": "Layer",
"title": "Fond de plan GeoRef (XYZ)",
"type": 100,
"options": {
"id": "820181000",
"visible": true,
"opacity": 50,
"minScale": null,
"maxScale": 537500,
"attribution": "©GeoRef",
"queryable": false
},
"definition": [
{
"serverUrl": "data/georef_zxy_tiles_local/{z}/{x}/{y}.jpeg"
}
]
},
{
"id": 820181075,
"itemType": "Layer",
"title": "Fond de plan GeoRef (WMS)",
"type": 0,
"options": {
"id": "820181075",
"visible": false,
"opacity": 50,
"minScale": null,
"maxScale": null,
"attribution": "©GeoRef",
"queryable": false
},
"definition": [
{
"serverUrl": "https://georef.application.developpement-durable.gouv.fr/cartes/mapserv",
"serverVersion": "1.3.0",
"layerName": "fond_vecteur",
"featureGeometryName": null,
"internalProjection": "EPSG:3857"
}
]
},
{
"id": 820181100,
"itemType": "Layer",
"title": "Fond de plan OpenStreetMap (OSM)",
"type": 9,
"options": {
"id": "820181100",
"visible": true,
"opacity": 50,
"minScale": null,
"maxScale": null,
"queryable": false
},
},
{
"id": 820181101,
"itemType": "Layer",
"title": "Photographies aériennes IGN (WMTS)",
"type": 3,
"options": {
"id": "820181101",
"visible": false,
"opacity": 50,
"minScale": null,
"maxScale": null,
"matrixSet": "PM",
"projection": "EPSG:3857",
"matrixIds": ["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21"],
"origins": [[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],[-20037508.342789248, 20037508.342789248],],
"resolutions": [156543.033928041,78271.51696402048,39135.758482010235,19567.87924100512,9783.93962050256,4891.96981025128,2445.98490512564,1222.99245256282,611.49622628141,305.7481131407048,152.8740565703525,76.43702828517624,38.21851414258813,19.10925707129406,9.554628535647032,4.777314267823516,2.388657133911758,1.194328566955879,0.5971642834779395,0.2985821417389697,0.1492910708694849,0.0746455354347424],
"tileSizes": [256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256],
"format": "image/jpeg",
"attribution": "©IGN",
"queryable": false
},
"definition": [
{
"serverUrl": "https://data.geopf.fr/wmts?",
"serverVersion": "1.0.0",
"layerName": "ORTHOIMAGERY.ORTHOPHOTOS",
"extent": [-19981848.597392607,-12932243.11199203,19981848.597392607,12932243.11199202],
"layerStyles": "normal"
}
]
}
]
}
]
},
"features": {
"toolBars": [
{
"div": "toolbar-root",
"tools": [
{
"type": "ZoomToInitialExtent",
"args": [
333837,
5315435,
1014141,
5592847
]
}
],
"options": {
"vertical": true
}
},
{
"div": "toolbar-layerstreesimple",
"tools": [
{
"type": "DisplayLayersTreeSimple"
}
],
"options": {
"vertical": true
}
},
{
"div": "toolbar-measure",
"tools": [
{
"type": "MeasureDistance"
},
{
"type": "MeasureArea"
}
]
},
{
"div": "toolbar-query",
"tools": [
{
"type": "PointSelection",
"args": {
"resultLayerParams": {
"display": true
},
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withResultLayerExport": true,
"withFilterColumns": true,
"withListResultLayer": true
}
}
},
{
"type": "PolygonSelection",
"args": {
"resultLayerParams": {
"display": true
},
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withResultLayerExport": true,
"withFilterColumns": true,
"withListResultLayer": true
}
}
}, {
"type": "CircleSelection",
"args": {
"resultLayerParams": {
"display": true
},
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withResultLayerExport": true,
"withFilterColumns": true,
"withListResultLayer": true
}
}
},
{
"type": "RectangleSelection",
"args": {
"persist": true,
"resultLayerParams": {
"display": true
},
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withResultLayerExport": true,
"withFilterColumns": true,
"withListResultLayer": true
}
}
},
{
"type": "PointRadiusSelection",
"args": {
"persist": true,
"infoRadius": true,
"exportBuffer": true,
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withResultLayerExport": true,
"withFilterColumns": true,
"withListResultLayer": true
},
"resultLayerParams": {
"display": true
}
}
},
{
"type": "LineBufferHaloSelection",
"args": {
"persist": true,
"infoBuffer": true,
"configHalo": false,
"exportBuffer": true,
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withResultLayerExport": true,
"withFilterColumns": true,
"withListResultLayer": true
},
"resultLayerParams": {
"display": true
}
}
},
{
"type": "PolygonBufferHaloSelection",
"args": {
"persist": true,
"infoBuffer": true,
"configHalo": false,
"exportBuffer": true,
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withResultLayerExport": true,
"withFilterColumns": true,
"withListResultLayer": true
},
"resultLayerParams": {
"display": true
}
}
}
]
},
{
"div": "toolbar-export",
"tools": [
{
"type": "ExportPDF",
"args": {
"infos": {
"title": "carte_descartes_exemples"
}
}
},
{
"type": "ExportPNG",
"args": {
"infos": {
"title": "carte_descartes_exemples"
}
}
}
]
},
{
"div": "toolbar-sharelink",
"tools": [
{
"type": "ShareLinkMap"
}
],
"options": {
"vertical": true
}
},
{
"div": "toolbar-geolocations",
"tools": [
{
"type": "GeolocationSimple",
"args": {
"displayProjections": ["EPSG:4326"]
}
},
{
"type": "GeolocationTracking"
}
],
"options": {
"enableHighAccuracy": true
}
},
{
"div": "toolbar-geoplateforme",
"tools": [
{
"type": Descartes.Button.GeoPlateformeRoute
},
{
"type": Descartes.Button.GeoPlateformeIsoCurve
},
{
"type": Descartes.Button.GeoPlateformeGetAltitude
}
],
"options": {}
}
],
"annotationToolBars": [
{
"div": "toolbar-annotations",
"tools": [
{
"type": "ToolBarOpener",
"args": {
"displayClass": "editionOpenerButton",
"title": "Outils d'annotations",
"tools": [
{
"type": "EditionAideAnnotation"
},
{
"type": "EditionDrawAnnotation",
"args": {
"geometryType": "Point",
"snapping": true
}
},
{
"type": "EditionDrawAnnotation",
"args": {
"geometryType": "Line",
"snapping": true,
"autotracing": true
}
},
{
"type": "EditionDrawAnnotation",
"args": {
"geometryType": "Polygon",
"snapping": true,
"autotracing": true
}
},
{
"type": "EditionDrawAnnotation",
"args": {
"geometryType": "Rectangle",
"snapping": true
}
},
{
"type": "EditionDrawAnnotation",
"args": {
"geometryType": "Circle",
"snapping": true
}
},
{
"type": "EditionFreehandAnnotation",
"args": {
"snapping": true
}
},
{
"type": "EditionTextAnnotation",
"args": {
"snapping": true
}
},
{
"type": "EditionBufferHaloAnnotation"
},
{
"type": "EditionGlobalModificationAnnotation"
},
{
"type": "EditionVerticeModificationAnnotation",
"args": {
"snapping": true
}
},
{
"type": "EditionAddTextAnnotation"
},
{
"type": "EditionAttributeAnnotation"
},
{
"type": "EditionStyleAnnotation"
},
{
"type": "EditionSnappingAnnotation"
},
{
"type": "EditionRubberAnnotation"
},
{
"type": "EditionEraseAnnotation"
},
{
"type": "EditionExportAnnotation"
},
{
"type": "EditionImportAnnotation"
}
],
"toolBarOptions": {
"panel": true,
"draggable": {
"enable": true,
"containment": "parent"
},
"resizable": true
}
}
}
],
"options": {}
},
],
"infos": [
{
"type" : "Attribution",
"div" : null
},
{
"type": "MetricScale",
"div": "NumericScale"
},
{
"type": "GraphicScale",
"div": "ScaleBar"
},
{
"type": "Legend",
"div": "Legend",
"options": {
"displayLayerTitle": true
}
},
{
"type": "LocalizedMousePosition",
"div": "LocalizedMousePosition",
"options": {
"projection": true,
"numDigits": 6,
"displayProjections": [
"EPSG:4326",
"EPSG:4326-DMS",
"EPSG:4326-DM",
"EPSG:4258",
"EPSG:4258-DMS",
"EPSG:4258-DM",
"EPSG:4171",
"EPSG:4171-DMS",
"EPSG:4171-DM",
"EPSG:3857",
"EPSG:3395",
"EPSG:2154",
"EPSG:3942",
"EPSG:3943",
"EPSG:3944",
"EPSG:3945",
"EPSG:3946",
"EPSG:3947",
"EPSG:3948",
"EPSG:3949",
"EPSG:3950",
"EPSG:32630",
"EPSG:32631",
"EPSG:32632",
"EPSG:27572",
"EPSG:4559",
"EPSG:5490",
"EPSG:2972",
"EPSG:2975",
"EPSG:4471",
"EPSG:4467",
"EPSG:3296",
"EPSG:3297",
"EPSG:3298",
"EPSG:3299"
],
"selectedDisplayProjectionIndex": 9
}
}
],
"actions": [
{
"type": "ScaleSelector",
"div": "ScaleSelector",
"options": {
"label": true
}
},
{
"type": "ScaleChooser",
"div": "ScaleChooser",
"options": {
"size": 5,
"label": true
}
},
{
"type": "CoordinatesInput",
"div": "CoordinatesInput",
"options": {
"projection": true,
"checkCoordinatesInMaxExtent": false,
"displayProjections": [
"EPSG:4326",
"EPSG:4258",
"EPSG:4171",
"EPSG:3857",
"EPSG:3395",
"EPSG:2154",
"EPSG:3942",
"EPSG:3943",
"EPSG:3944",
"EPSG:3945",
"EPSG:3946",
"EPSG:3947",
"EPSG:3948",
"EPSG:3949",
"EPSG:3950",
"EPSG:32630",
"EPSG:32631",
"EPSG:32632",
"EPSG:27572",
"EPSG:4559",
"EPSG:5490",
"EPSG:2972",
"EPSG:2975",
"EPSG:4471",
"EPSG:4467",
"EPSG:3296",
"EPSG:3297",
"EPSG:3298",
"EPSG:3299"
],
"selectedDisplayProjectionIndex": 3
}
},
/*{
"type": "SizeSelector",
"div": "SizeSelector",
"options": {
"sizeList": [
[
450,
300
],
[
600,
400
],
[
750,
500
],
[
900,
600
]
],
"defaultSize": 1,
"label": true
}
},*/
{
"div": "localisationAdresse",
"type": Descartes.Action.LocalisationAdresse
},
/*{
"div": "Print",
"options": {
"label": true,
"infos": {
"title": "carte_descartes_exemples",
"producer": "Service producteur : Formations géomatiques",
"attributions": "Données © MTES",
"logoUrl": "bloc-marque_MTES.png",
"defaultFormatCode": "A4L"
},
"params": {
"displayProjections": [
"EPSG:4326",
"EPSG:4258",
"EPSG:4171",
"EPSG:3857",
"EPSG:3395",
"EPSG:2154",
"EPSG:3942",
"EPSG:3943",
"EPSG:3944",
"EPSG:3945",
"EPSG:3946",
"EPSG:3947",
"EPSG:3948",
"EPSG:3949",
"EPSG:3950",
"EPSG:32630",
"EPSG:32631",
"EPSG:32632",
"EPSG:27572",
"EPSG:4559",
"EPSG:5490",
"EPSG:2972",
"EPSG:2975",
"EPSG:4471",
"EPSG:4467",
"EPSG:3296",
"EPSG:3297",
"EPSG:3298",
"EPSG:3299"
],
"selectedDisplayProjectionIndex": 3
}
}
}*/
{
type: Descartes.Action.InkMapParamsManager,
div: 'Print',
options: {
label: true,
infos: {
title: "D-Demomap - Application de démonstration de Descartes",
producer: 'Service producteur : XXX',
attributions: 'Données © MTES',
logoUrl: 'bloc-marque_MTES.png',
defaultFormatCode: 'A4L',
},
params: {
displayProjections: [
"EPSG:4326",
"EPSG:4258",
"EPSG:4171",
"EPSG:3857",
"EPSG:3395",
"EPSG:2154",
"EPSG:3942",
"EPSG:3943",
"EPSG:3944",
"EPSG:3945",
"EPSG:3946",
"EPSG:3947",
"EPSG:3948",
"EPSG:3949",
"EPSG:3950",
"EPSG:32630",
"EPSG:32631",
"EPSG:32632",
"EPSG:27572",
"EPSG:4559",
"EPSG:5490",
"EPSG:2972",
"EPSG:2975",
"EPSG:4471",
"EPSG:4467",
"EPSG:3296",
"EPSG:3297",
"EPSG:3298",
"EPSG:3299",
],
selectedDisplayProjectionIndex: 3,
},
},
}
],
/*"directionalPanPanel": {
"options": {}
},*/
/*"miniMap": {
"resourceUrl": "http://mapserveur.application.developpement-durable.gouv.fr/map/mapserv?map=/opt/data/carto/cartelie/prod/PNE_IG/OSM_2.i2.map&LAYERS=c_natural_Valeurs_type",
"options": {}
},*/
/*"toolTip": {
"div": "ToolTip",
"toolTipLayers": [
{
"layerId": "820181080",
"fields": [
"name"
]
},
{
"layerId": "820181081",
"fields": [
"name"
]
}
],
"options": {
"delay": 500,
"displayDelay": 5000,
"displayOnClick": true
}
},*/
/*"bookmarksManager": {
"div": "Bookmarks",
"mapName": "exemple-descartes",
"options": {}
},*/
"gazetteer": {
"div": "Gazetteer",
"initValue": "",
"levels": [
{
"message": "Choisissez une région",
"error": "Aucune région",
"name": "reg",
"options": {}
},
{
"message": "Choisissez un département",
"error": "Aucun département",
"name": "dept",
"options": {}
},
{
"message": "Choisissez une commune",
"error": "Aucune commune",
"name": "com",
"options": {}
},
{
"message": "Choisissez une section cadastrale",
"error": "Aucune section",
"name": "",
"options": {}
},
{
"message": "Choisissez une parcelle cadastrale",
"error": "Aucune parcelle",
"name": "",
"options": {}
}
],
"options": {
"service": {
"type": "localisationParcellaire",
"niveauBase": 0
}
}
},
/*"requestManager": {
"div": "Requetes",
"requests": [
{
"layerId": "820181080",
"title": "Filtrage des objets de la couche \"Stations essence\"",
"geometryType": "Point",
"requestMembers": [
{
"title": "name",
"field": "name",
"operator": "~",
"value": [],
"visible": true
}
],
"options": {}
},
{
"layerId": "820181081",
"title": "Filtrage des objets de la couche \"Parkings\"",
"geometryType": "Point",
"requestMembers": [
{
"title": "name",
"field": "name",
"operator": "~",
"value": [],
"visible": true
}
],
"options": {}
}
],
"options": {
"withChooseExtent": true,
"resultUiParams": {
"withReturn": true,
"withUIExports": true,
"withAvancedView": true,
"withResultLayerExport": true,
"withFilterColumns": true,
"withListResultLayer": true
}
}
},*/
"openlayersFeatures": {
"controls": [
{
"type": Descartes.Map.OL_ZOOM,
"args": {
"target": "map-zoom",
"className": "map-tools-zoom"
}
},
{
"type": Descartes.Map.OL_ROTATE,
"args": {
"target": "map-rotate",
"className": "map-tools-rotate"
}
}
],
"interactions": [
{
"type": Descartes.Map.OL_MOUSE_WHEEL_ZOOM
},
{
"type": Descartes.Map.OL_DRAG_PAN,
"args": {
condition:ol.events.condition.noModifierKeys/*,
kinetic: new ol.Kinetic(-0.01, 0.1, 200)*/
}
},
{
"type": Descartes.Map.OL_DRAG_ZOOM
},
{
"type": Descartes.Map.OL_DRAG_ROTATE
},
{
"type": Descartes.Map.OL_DRAG_ROTATE_AND_ZOOM
},
{
"type": Descartes.Map.OL_PINCH_ZOOM
}
]
}
}
};
}
\ No newline at end of file