Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
d-demomap
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
Géomatique
Descartes
demo
d-demomap
Commits
ae8c49c7
Commit
ae8c49c7
authored
8 months ago
by
Gaelle.Barris
Browse files
Options
Downloads
Patches
Plain Diff
add context vectortile
parent
143f8078
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public/index.html
+7
-0
7 additions, 0 deletions
public/index.html
src/app.js
+11
-0
11 additions, 0 deletions
src/app.js
src/initcontext_vectortile.js
+1042
-0
1042 additions, 0 deletions
src/initcontext_vectortile.js
with
1060 additions
and
0 deletions
public/index.html
+
7
−
0
View file @
ae8c49c7
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
src/app.js
+
11
−
0
View file @
ae8c49c7
...
@@ -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.
Click to expand it.
src/initcontext_vectortile.js
0 → 100644
+
1042
−
0
View file @
ae8c49c7
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment