Summary: | RGB Image Mode and the Scalebar | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Ken Sanderson <ken@rockies.ca> |
Component: | Widget | Assignee: | chameleon-dev <chameleon-dev@lists.maptools.org> |
Status: | NEW | ||
Severity: | normal | CC: | bartvde@osgis.nl |
Priority: | P2 | ||
Version: | 1.99 | ||
Target Milestone: | FUTURE | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Changed target to 1.99 RC 1.
While mucking about with Netscape I found that the scalebar displays properly in netscape, so its some kind of IE bug.
By using e.g. the following PNG hack (for IE 5.5+) the problem can be solved: http://www.mongus.net/pngInfo/
Bart have you tried implimenting pngHack? I couldnt get pngHack to work, but its parent pngBehaviour did work when I implimented it, including fixing the problem, however there were two new problems: 1) its fairly slow and it shows the original problem image first and then applies itself and removes the unclear box. 2) It loads fine, but breaks all my navigation tools so that if I try and zoom- in, zoom-out etc, it returns a "The page cannot be displayed" error. Just curious if you have tried it or not. Ken
Ken, I have tried pngHack and it works for me. I did not experience any problems implementing it. You can see the result at: http://www.vz.geodan.nl:1111/geoservices/
I think pngHack wont work on IIS, or atleast thats my guess after implimenting it serveral times without a change in the problems I noted above. I did find another work around. In the scalebar widget, I changed: var $mszImageType = "PNG"; To var $mszImageType = "GIF"; Not sure its actually doing transparency as I havent tested, but it works well with my white background so leaving it as is for now. Ken