Skip to Content

sap.ui.vbm.AnalyticMap not able to change selection and default color region

May 16 at 02:04 PM


avatar image


Hi all,

I am trying to show north america region as a map. But with the default constructor of sap.ui.vbm.AnalyticMap it is giving world map. Please guide how to select only map of north america.

Below is my code for the same. I have attached the north-america.json/.txt for this code.

return Controller.extend("my-proj.controller.Page3", {
onInit : function(){
sap.ui.vbm.AnalyticMap.GeoJSONURL = "json/north-america.json";
north-america.txt (92.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Srikanth KV May 16 at 08:44 PM

check the sample app

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thank you!! I was trying to initialize GeoJSONURL in onInit method. Hence it was not getting implemented.