Skip to Content

sapui5 analytical map making selected region into red color

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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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
    Add comment
    10|10000 characters needed characters exceeded