Skip to Content
avatar image
Former Member

Lumira Designer issues with maps

Hi,

Im currently having issues with the map component of Lumira Designer that I never had while using geo maps in Design Studio. Here's my case :

My map have 2 layers - regions and cities. The cities are invisible on startup, but when I click on a region i want the map to zoom in on it and show cities associated with it. I want the map to return to previous state if we click outside of highlighted area.

I could do that without any issues in Design Studio, but doing identical code and case in lumira have this effect :

Norma view:

Zoomed view:

The region that I clicked stay highlighted covering all the information regarding cities. Putting the cities layer above region doesnt fix the issue

Its caused by the fact that the region is highlighted and theres no "clear selection" function or anything that migh thelp that.

Is there is any way to fix the issue or is it a bug?

Heres my code:

var value = MAP_1.getSelectedMember("SK_WOJ");
var value2 = MAP_1.getSelectedLayer();

if (value2 == "LAYER_2")
{
DS_1.setFilter("SK_WOJ", value);
DS_2.setFilter("SK_WOJ", value);
MAP_1.setLayerVisible("LAYER_1", true);
MAP_1.centerMap("LAYER_2");
}
else
{
DS_1.clearFilter("SK_WOJ");
DS_2.clearFilter("SK_WOJ");
MAP_1.setLayerVisible("LAYER_1", false);
MAP_1.centerMap("LAYER_2");
}

Where LAYER_1 and DS_1 are cities and LAYER_2 and DS_2 are connected to regions

I'm using SAP BusinessObjects Lumira Designer Release 2.0 SP3 (Version: 20.3.1).

Best regads,

Magdalena

pwczs.png (851.2 kB)
cosik.png (646.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 04, 2017 at 06:15 AM
    var value = MAP_1.getSelectedMember("SK_WOJ"); 
    var value2 = MAP_1.getSelectedLayer();  
    if (value2 == "LAYER_2") { 
        DS_1.setFilter("SK_WOJ", value); 
        DS_2.setFilter("SK_WOJ", value); 
        MAP_1.setLayerVisible("LAYER_2", false);
        MAP_1.setLayerVisible("LAYER_1", true);
        MAP_1.centerMap("LAYER_1"); 
    } else { 
        DS_1.clearFilter("SK_WOJ"); 
        DS_2.clearFilter("SK_WOJ"); 
        MAP_1.setLayerVisible("LAYER_1", false);
        MAP_1.setLayerVisible("LAYER_2", true);
        MAP_1.centerMap("LAYER_2");
     }
    Add comment
    10|10000 characters needed characters exceeded