Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

GeoMap getSelectedLayer doesn't work

$
0
0

hi guys,

 

i have an shape layer representing us states. after startup my clicking on an shape it focus on the shape layer which was clicked (centerMap). After the centering I got the problem that if I click on the shape the value of getSelectedlayer() or getSelectedMember(dimension).internalKey are both empty.

 

In the script I want to handle whether the user clicked on the shape or outside of the shape.

 

Any ideas?

 

Kind Regards,

 

Simon

 

 

Code:

var state = GEO_MAP_1.getSelectedMember("STATE").internalKey;

 

if (GEO_MAP_1.getSelectedLayer()=== "SHAPE_STATE"){

  STATE.setFilter("STATE", state);

  STORE.setFilter("STATE", state);

  GEO_MAP_1.centerMap(GEO_MAP_1.getSelectedLayer());

  GEO_MAP_1.setLayerVisible("PIE_STORE", false);

 

}

 

else{

APPLICATION.alert(state);

  STORE.clearFilter("STATE");

  STATE.clearFilter("STATE");

  GEO_MAP_1.centerMap("SHAPE_STATE");

  GEO_MAP_1.setLayerVisible("PIE_STORE", false);


Viewing all articles
Browse latest Browse all 4041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>