Skip to Content
0

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

May 16 at 02:04 PM

24

avatar image

north-america.txt

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(){
this.getView().addStyleClass(this.getOwnerComponent().getContentDensityClass());
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
0

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.

0