on 09-15-2016 7:30 PM
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
Hi Vamsi,
here an example of geomap using open street map:
https://jsfiddle.net/falborgh/u4aouxsx/
If you want to use open street map tile server, take in consideration its usage policy:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.