cancel
Showing results for 
Search instead for 
Did you mean: 

GeoMap does not load correctly

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

francesco_alborghetti
Active Participant

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:

Tile usage policy - OpenStreetMap Wiki

Former Member
0 Kudos

Hello Francesco/Vamsi -

I dont see the option of Mapconfiguration in web-ide (HCP) , when i select Geomap from controls tab.

I am using the trial version, could that be the reason ?

Regards,

Sandeep

Answers (0)