HI all,
Can anyone help me insert a WMS layer (it is an image) we are hosting into the API we have operational? Just cannot see to get it to work. I suspect it is a layer name problem or we are not using the correct URL. I can view it in WMS viewing software such as arcgis UDIG so I suspect it is hosted correctly.
We are using the API located at http://www.wm.edu/as/cga/Online%20GI...s/AngevinMaps/
I am hosting my own WMS layers at
http://cga.campus.wm.edu/ArcGIS/serv...ver/WMSServer?
Layer name = Deneze
Full code is below.
Thanks
Stuart
<title>API Geoportail - votre carte personnelle</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="http://api.ign.fr/geoportail/api?v=1.0&key=2298977541674719491&instance=VISU">
<!-- -->
</script>
<script type="text/javascript">
<!--
function initGeoportalMap() {
// Par défaut on se positionne sur la France métropolitaine :
// Default to France main land :
geoportalLoadVISU("GeoportalVisuDiv");
// Avec un code territoire (ici la Guadeloupe), on peut choisir son point de vue
// Snapshot with a territory code (here Guadeloupe island)
// geoportalLoadVISU("GeoportalVisuDiv", "normal", "GLP");
if (VISU) {
VISU.addGeoportalLayers();
}
VISU.getMap().setCenter(VISU.viewerOptions.defaultCenter,VISU.viewerOptions.defaultZoom);
VISU.getMap().setCenterAtLonLat(-0.126057,47.491409,15);
}
-->
</script>
<style type="text/css">
<!--
div#GeoportalVisuDiv {
width:720px;
height:540px;
}
-->
</style>
<div id="GeoportalVisuDiv"></div>
Partager