Community
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">I
have 3 particular layers in my mwf. When a layer is clicked on, I want the
other two to be switched off.
Does anybody know how to perform this
operation, as I have tried so many things. I have managed to alternate between
the layers but the points are not visible in the map.
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"patbeer" <Thank
href="mailto:pat.beer@shepwaydc.gov.uk">pat.beer@shepwaydc.gov.uk>
wrote in message
href="news:f180d20.1@WebX.maYIadrTaRb">news:f180d20.1@WebX.maYIadrTaRb...
you very much for your help as I have put the following code in the
OnViewChanged() event.
// only make visible either Property Gazetteer,
LLPG or Addresspoint
function turnProperty(map) {
var property =
map.getMapLayer("property");
var llpg = map.getMapLayer("llpg");
var
addresspoint = map.getMapLayer("addresspoint");
if (property.isVisible() == true) {
property.setVisibility(llpg.getVisibility() ||
addresspoint.getVisibility());
} else {
if (llpg.isVisible() == true)
{
llpg.setVisibility(property.getVisibility() ||
addresspoint.getVisibility());
} else {
if (addresspoint.isVisible()
== true) {
addresspoint.setVisibility(llpg.getVisibility() ||
property.getVisibility());
}
}
}
}
It toggles between the layers but the labels are not showing, when you
hover of the points, also you can not select them. Have you any
Ideas.