Skip to Content
0
May 16, 2018 at 02:04 PM

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

90 Views

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";
}
}

Attachments

north-america.txt (92.3 kB)