Skip to Content
0
Former Member
Sep 15, 2016 at 06:30 PM

GeoMap does not load correctly

191 Views

I am trying to load the GeoMap control using the Open Street Map as a TileProvider. I have added the mapConfiguration:

{

"MapProvider":[

{

"name":"Open Street Map",

"id":"osm-tileset",

"tileX": "256",

"tileY": "256",

"maxLOD": "20",

"url":"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"

}

],

"MapLayerStacks": [{

"name": "DEFAULT",

"MapLayer": {

"name": "layer1",

"refMapProvider": "Open Street Map",

"opacity": "1.0",

"colBkgnd": "RGB(255,255,255)"

}

}],

"position":"-36.5;143.98"

}

I have added the control with the configuration:

<vbm:GeoMap

mapConfiguration="{map>/config}"

centerPosition="{map>/position}"

refMapLayerStack="DEFAULT"

>

I get the error:

sapscene.js:12 Uncaught (in promise) TypeError: Cannot read property 'm_nMaxSquare' of null

sapscale.js:2 Uncaught TypeError: Cannot read property 'id' of undefined