Title: Zoom Layering
Stu,
 
I guess you'll have to ask the MapperWindow for the current zoom and then compare that with the zoom of the layer:
 
Set Distance Units "m"    'or "mi" or "km" or whatever you want
fZoom = MapperInfo(sMapWinID, MAPPER_INFO_ZOOM)
fZoomMin = LayerInfo(sMapWinID, sLayerNumber, LAYER_INFO_ZOOM_MIN)
fZoomMax = LayerInfo(sMapWinID, sLayerNumber, LAYER_INFO_ZOOM_MAX)
 
If fZoom Between fZoomIn and fZoomMax Then
        '**Yes, the layer is now visible in the map
Else
    '**No, the layer is not visible in the map
End if
 
HTH,
 
Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
 
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
 
Tel     +45 6311 4900
Direct  +45 6311 4908
Mob     +45 5156 1045
Fax     +45 6311 4949
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk/gis

"For enden af regnbuen..." - hvordan kommer man dertil og er det overhovedet muligt?
Læs mere om årets MapInfo konference på www.cowi.dk/mapinfokonference

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gibb, Stuart
Sent: Wednesday, July 12, 2006 3:31 PM
To: mapinfo-l@lists.directionsmag.com
Subject: [MI-L] Zoom Layering

Hi guys,

I have a layer and Zoom layering is enabled

sLayerZoom = LayerInfo(sMapWinID, sLayerNumber, LAYER_INFO_ZOOM_LAYERED)
sLayerZoom = T

Any idea how I determine if I am within the zoom range ? i.e. at a distance from earth so that I can see the layer ?

LAYER_INFO_DISPLAY doesn’t do it for me

Thanks in advance

Stu



 

 

Visit our website at http://www.halcrow.com

------------------------------------------------------------------------
The contents of this email are confidential, for the sole use
of the intended recipient at the email address to which it has
been addressed and do not give rise to any binding legal
obligation upon Halcrow companies unless subsequently confirmed
on headed business notepaper sent by fax, letter or as an email
attachment.  Whilst reasonable care has been taken to avoid virus
transmission, no responsibility for viruses is taken and it is
your responsibility to carry out such checks as you feel
appropriate.  Emails supplied are as found and there's no
guarantee that the messages contained within the body of the
email have not been edited after receipt. If you receive this
email in error, please contact the sender immediately and delete
the message from your system.
Thank you.
-------------------------------------------------------------------------

_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to