Skip to content
Snippets Groups Projects
Commit ae8c49c7 authored by Gaelle.Barris's avatar Gaelle.Barris
Browse files

add context vectortile

parent 143f8078
Branches
Tags
No related merge requests found
...@@ -177,6 +177,13 @@ ...@@ -177,6 +177,13 @@
rel="noreferrer noopener" rel="noreferrer noopener"
>Couches Descartes Cluster</a >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> <div class="dropdown-divider"></div>
<center><h4 class="dropdown-header"><b>Couches d'édition</b></h4></center> <center><h4 class="dropdown-header"><b>Couches d'édition</b></h4></center>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
......
...@@ -11,6 +11,7 @@ import {getInitContextEditionKml} from './initcontext_editionkml' ...@@ -11,6 +11,7 @@ import {getInitContextEditionKml} from './initcontext_editionkml'
import {getInitContextEditionGeoJson} from './initcontext_editiongeojson' import {getInitContextEditionGeoJson} from './initcontext_editiongeojson'
import {getInitContextVide} from './initcontext_vide' import {getInitContextVide} from './initcontext_vide'
import {getInitContextGeoplateforme} from './initcontext_geoplateforme' import {getInitContextGeoplateforme} from './initcontext_geoplateforme'
import {getInitContextVectortile} from './initcontext_vectortile'
import { import {
setMapTitle, setMapTitle,
setVersionLabel, setVersionLabel,
...@@ -98,6 +99,8 @@ export async function initialize(descartes) { ...@@ -98,6 +99,8 @@ export async function initialize(descartes) {
context = getInitContextCarto2(); context = getInitContextCarto2();
} else if (additionalParams.contentType === "geoplateforme") { } else if (additionalParams.contentType === "geoplateforme") {
context = getInitContextGeoplateforme(); context = getInitContextGeoplateforme();
} else if (additionalParams.contentType === "vectortile") {
context = getInitContextVectortile();
} else if (additionalParams.contentType === "vide") { } else if (additionalParams.contentType === "vide") {
context = getInitContextVide(); context = getInitContextVide();
} else if (additionalParams.contentType === "geojson") { } else if (additionalParams.contentType === "geojson") {
...@@ -150,6 +153,14 @@ export function initializeMap(descartes,dcontext,dMap, contentType) { ...@@ -150,6 +153,14 @@ export function initializeMap(descartes,dcontext,dMap, contentType) {
context.mapContent.items.unshift(coucheAnnotations); 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 { } else {
//switch open panel //switch open panel
document.body.querySelector('#Legend').className = ""; document.body.querySelector('#Legend').className = "";
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment