-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
9,490 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
samples-src/pages/2d/page-mapbox-femme-geoportail-multisource-bundle.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{{#extend "sample-bundle-layout-2d"}} | ||
|
||
{{#content "head"}} | ||
<title>Sample SDK 2D MapBox</title> | ||
{{/content}} | ||
|
||
{{#content "style"}} | ||
<style> | ||
#geoportalMap { | ||
height: 800px; | ||
width: 800px; | ||
} | ||
</style> | ||
{{/content}} | ||
|
||
{{#content "body"}} | ||
<h1>Une carte affichant une couche MapBox (Multi-source)</h1> | ||
<p>NB : le clic sur les features s'obtient par l'ajout du controle GetFeatureInfo (ici : caché et activé).</p> | ||
<div id="geoportalMap"></div> | ||
{{/content}} | ||
|
||
{{#content "js"}} | ||
<script> | ||
var map = Gp.Map.load('geoportalMap',{ | ||
reloadConfig : false, | ||
apiKey : "{{apikey}}", | ||
center:{ | ||
x : 407444, | ||
y : 5856585 | ||
}, | ||
controlsOptions : { | ||
"layerSwitcher" : {}, | ||
"getfeatureInfo" : { | ||
options : { | ||
auto : true, | ||
hidden: true | ||
} | ||
}, | ||
"layerimport" : {} | ||
}, | ||
layersOptions : { | ||
"FEMME" : { | ||
format : "MapBox", | ||
url : "{{resources}}/MAPBOX/styles/carte_journee_femme.json" | ||
} | ||
}, | ||
zoom : 10 | ||
}); | ||
</script> | ||
{{/content}} | ||
{{/extend}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.