Skip to Content

sapui5 analytical map making selected region into red color

Feb 08, 2017 at 04:03 PM


avatar image

Hi Experts ,

I am using Analytical Map in my project and my requirement is to highlight the country in red color basing on the selection from drop down.

For eg I have a drop down and selected USA then the United states of America should turn into red color . Can anybody help here.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Srikanth KV Feb 08, 2017 at 06:16 PM


You need to access GeoJsonLayer of the analytical map and set the property defaultFillColor

//Event handler code for dropdown
var oMap = //get reference of analytical map
var aLayers = oMap.getGeoJsonLayers();    //list of layers as array (you can imagine this as regions or country. this depends on GeoJSON)

var oLayer =  //Loop through all layers and identify the country based on id parameter of each layer
10 |10000 characters needed characters left characters exceeded