The Map displays a geographic map based on OpenStreetMap. A marker can be added, e.g. for displaying an asset's location.
Map deviation in region China 1
The map display is based on Amap in region China 1.
Zooming via CTRL key is not supported by Amap in region China 1.
You should follow the instructions from https://lbs.amap.com/dev/key/app to apply Web client(JS API) type Amap key for your Web application.
By default, Amap does not support detail oversea LBS service. If you need oversea LBS serivce, you should apply for it by creating ticket to Amap service via https://lbs.amap.com/dev/ticket/type.
You should add below code snippet into your Web application <head> for Amap integration.
Up to 25,000 requests to the underlying map service per month are free. For an extension please contact your assigned Account Executive or Customer Success Manager.
The number of free requests to the underlying map service is limited to 25.000 calls per month. For further support please contact our sales team.
// listen on viewChanged event and save lastest view stateconstmapComp=document.querySelector('mdsp-map');mapComp.addEventListener('viewChanged',function(eventParams){// log view state objectconsole.log(newDate().toISOString()+" map.viewChanged: "+JSON.stringify(eventParams.detail));// save state object f.e. as global variablewindow.myMapViewState=eventParams.detail;});// restore the saved map view to any a point in timeif(window.mapViewState){mapComp.view.update(window.myMapViewState);}