How switch on/off ONE of 2 different marker on one layer?

Maciej Skorczewski maciej.skorczewski at procad.pl
Thu Oct 26 15:23:53 EDT 2006


Hi

I have i one layers (name: user_point)
it has 2 diferent marker (hotels , pubs)

(screen in attachment or on internet at
http://img120.imageshack.us/img120/7419/onoffma3.gif
)

When i get info about visibility of layers i get
message that

user_point is ON

---PHP code---
$layers = $map->GetLayers(); // Get layer collection
$count = $layers->GetCount();
for ($i = 0; $i < $count; $i++)
{
$layer = $layers->GetItem($i);
echo $layer->GetName() . ' (' .
($layer->GetVisible() ? 'on' : 'off') . ')<br />';
}
---end code---

how programmical  can i show/hide  ONE marker in this layer(ex. hotels)

so user_point layer  will be visible but marker hotels will not.

-- 
Maciej Skorczewski


-------------- next part --------------
A non-text attachment was scrubbed...
Name: on_off.GIF
Type: image/gif
Size: 3845 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide_users/attachments/20061026/1e3989fc/on_off.gif


More information about the Mapguide_users mailing list