[mapguide-users] Show help on a specific feature when selected
Rohit Razdan
rrrazdan at gmail.com
Thu Apr 29 06:17:16 EDT 2010
I think what you are looking for is the functionality in
http://data.mapguide.com/mapguide/devguide/index.php -- Map Layers
section
Full source is at
http://data.mapguide.com/mapguide/devguide/common/viewsource.php?FILENAME=D%3A\MapGuideOpenSourceWeb\www\devguide\INTERACTING_WITH_LAYERS%2Flayer_visibility.php
relevant code
$resourceService = $siteConnection->
CreateService(MgServiceType::ResourceService);
$map = new MgMap();
$map->Open($resourceService, $mapName);
$layers = $map->GetLayers();
for ($i = 0; $i < $count; $i++)
{
$layer = $layers->GetItem($i);
$lname = $layer->GetName();
$visibility= $layer->GetVisible();
//insert layer specific code here
}
HTH.
Rohit
On Thu, Apr 29, 2010 at 3:34 PM, shepwaydistrictcouncil
<neil.thompson at shepway.gov.uk> wrote:
>
> Hi
>
> Is there any way I can show help information based only on what layer (s)
> the user has selected?
>
> I would like for example when the user clicks on my "Tree Preservation
> Orders" layer to then perhaps show help specific to that layer in the right
> hand pane?
>
> For example the text : "Although this layer displays Tree Preservation
> Orders it does not necessarily mean that trees outside of the order are not
> protected by a different order. Please contact us for clarification on your
> tree before commencing work."
>
> Thanks
> Neil
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Show-help-on-a-specific-feature-when-selected-tp4979242p4979242.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
More information about the mapguide-users
mailing list