[fusion-trac] #266: Maptips Should Only Show for Visible Layers
Fusion
trac_fusion at osgeo.org
Tue Jun 30 13:44:43 EDT 2009
#266: Maptips Should Only Show for Visible Layers
---------------------+------------------------------------------------------
Reporter: tnolte | Owner: madair
Type: defect | Status: new
Priority: P2 | Milestone: Future
Component: Widgets | Version: 2.0 - beta
Severity: Major | Resolution:
Keywords: maptips | External_id:
State: New | Browser: All
Os: All |
---------------------+------------------------------------------------------
Changes (by tnolte):
* version: 1.1.1 => 2.0 - beta
Comment:
I have looked at the code and attempted to fix this using the layer
MapScript function isVisible(), however it is coming back as TRUE for some
reason. I then proceeded to use the scale/scaledenom MapScript references
only to find that these aren't set if the scale is not set in the mapfile
on the layer level. Would have to go to the classes to figure out the
max/min scale. I also found out that the Maptips.php file is creating a
new instance of the oMap object which has no MapScript scale/scaledenom
set, comes back as -1. Going to proceed to check the extent values and see
if I can come up with a fix for this. Alternatively, this may require an
addition to the Maptips.php widget file to be passing the extent or scale
to the MapGuide/MapServer specific scripts.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/266#comment:1>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list