oMap; $aaLayers = array(); for ($i=0; $i<$oMap->numlayers; $i++ ) { $bValidLayer = true; $oLayer = $oMap->getLayer( $i ); if ($oLayer->status == MS_OFF) continue; switch ($oLayer->type) { case MS_LAYER_POINT: $szLayerType = 'POINT'; break; case MS_LAYER_LINE: $szLayerType = 'LINE'; break; case MS_LAYER_POLYGON: $szLayerType = 'POLYGON'; break; case MS_LAYER_RASTER: $szLayerType = 'RASTER'; break; default: $szLayerType = 'unsupported ('.$oLayer->type.' )'; $bValidLayer = false; } if ($bValidLayer) { $aszAttributes = GetLayerAttributes( $oLayer ); if (count($aszAttributes) > 0) { $szName = $oLayer->getMetaData( "WMS_TITLE" ); if ($szName == "") $szName = $oLayer->name; if ($oLayer->connectiontype == MS_WMS) { switch ($aszAttributes['fields']['LayerType']) { case 'MS_LAYER_POINT': $szLayerType = 'POINT'; break; case 'MS_LAYER_LINE': case 'MS_LAYER_POLYGON': default: $szLayerType = 'unsupported'; $bValidLayer = false; } $szName .= " (WMS - ".$szLayerType.")"; } elseif ($oLayer->connectiontype == MS_WFS) { $szName .= " (WFS - ".$szLayerType.")"; } else { $szName .= " (local - ".$szLayerType.")"; } if ($bValidLayer) { $aszLayerAttributes = array( $oLayer->name, $szName ); $aszLayerAttributes = array_merge( $aszLayerAttributes, array_keys($aszAttributes['fields']) ); array_push( $aaLayers, $aszLayerAttributes ); } } } } ?> <?php echo trim($oMLT->get("0", "Configure MapTips")) ?>
 get("0", "Configure MapTips")) ?>

get("1", "Select a layer and one or more attributes to display as MapTips. Optionally provide a URL to link to when you click on the MapTip, and a field whose value will be passed to the URL you provide.")) ?>

get( "3", "Layer") ?>:
get( "4", "Attributes") ?>:

get( "5", "Link URL:") ?>:
get( "5", "Unique ID Field:") ?>:
get("Ok", "Ok"), $oCommonMLT->get("OkTip", "Apply MapTips"), array( 'width' => 75 )); ?> get("Cancel", "Cancel"), $oCommonMLT->get("CancelTip", "Cancel Dialog"), array( 'width' => 75 )); ?>