Skip to content
Snippets Groups Projects
Commit c991041b authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added color background map. Fixed protocol issues

parent d59a09f2
No related branches found
No related tags found
No related merge requests found
...@@ -125,8 +125,8 @@ function initGisInfoMap(containerId, center, zoomLevel, displayMarker, drawnObjs ...@@ -125,8 +125,8 @@ function initGisInfoMap(containerId, center, zoomLevel, displayMarker, drawnObjs
} }
}) })
}); });
//########################Get maplayers you can choose from######################## //########################Get maplayers you can choose from########################
......
...@@ -25,11 +25,10 @@ function initMap() ...@@ -25,11 +25,10 @@ function initMap()
source: new ol.source.TileWMS({ source: new ol.source.TileWMS({
attributions: [ attributions: [
new ol.Attribution({ new ol.Attribution({
html: "Kartgrunnlag: Statens kartverk (<a href='http://creativecommons.org/licenses/by-sa/3.0/no/' target='new'>cc-by-sa-3.0</a>)" html: "Kartgrunnlag: Statens kartverk (<a href='//creativecommons.org/licenses/by-sa/3.0/no/' target='new'>cc-by-sa-3.0</a>)"
}) })
], ],
url: "http://opencache.statkart.no/gatekeeper/gk/gk.open?", url: "//opencache.statkart.no/gatekeeper/gk/gk.open?",
//url: "//openwms.statkart.no/skwms1/wms.topo2.graatone?"//,
params: { params: {
LAYERS: 'topo2graatone', LAYERS: 'topo2graatone',
VERSION: '1.1.1' VERSION: '1.1.1'
...@@ -37,6 +36,21 @@ function initMap() ...@@ -37,6 +36,21 @@ function initMap()
}) })
}); });
// Detailed Norway map in colours
var topo2 =
new ol.layer.Tile({
title: "Farger",
type: 'base',
visible: true,
source: new ol.source.TileWMS({
url: "//opencache.statkart.no/gatekeeper/gk/gk.open?",
params: {
LAYERS: 'topo2',
VERSION: '1.1.1'
}
})
});
// The layer for putting the data // The layer for putting the data
var features = new ol.Collection(); var features = new ol.Collection();
...@@ -129,7 +143,8 @@ var styles = { ...@@ -129,7 +143,8 @@ var styles = {
map = new ol.Map({ map = new ol.Map({
target: 'map', target: 'map',
layers: [ layers: [
topo2graatone, //topo2graatone,
topo2,
featureOverlay, featureOverlay,
newFeatureOverlay newFeatureOverlay
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment