[mapserver-users] selectively bypass mapplet?
david_raitzer at hotmail.com
Fri Jun 8 21:22:00 EDT 2001
Thanks for the suggestion. Yet, now, when the applet is bypassed by clicking
the reference map, or by reseting the form values, which passes CGI
variables for the mapfile, zoom direction, and zoom factor, Internet
Explorer 5 returns an error related to a "document.mapplet.boxoff();" line
in a function that determines whether to allow box drawing. However, the
applet still works, and if the page is then reloaded, the error message
disappears. Are there any suggestions on how to bypass this error? Or is
this related to the poor JRE in IE 5? The problem doesn't appear in
Netscape, but it makes it seem as if the page is poorly coded in IE.
> > >>> "David Raitzer" <david_raitzer at hotmail.com> 06/06/01 12:05PM >>>
> > Hello,
> > To clarify my previous question about point queries with mapplet, I
> > like to use mapplet only for zooming and querying multiple features, but
> > bypass it for other functions (panning, singular queries, and zooming
> > Is there any easy way to achieve this? Does anyone have an example
> > to cut and paste? I would like to do this because panning and single
> > queries appear not to function with mapplet, and I would like to
> > this functionality.
>I can see bypassing it for zoom in/out by some factor if you assume you're
>zooming on the center of the image. To do that just make the zoom controls
>change the appropriate form variables (e.g. zoomdir) and then submit the
>form. Pans can also be handled like that if you use images around the main
>map as triggers. Otherwise you need a coordinate from the image to do any
>other operation and since you have the mapplet in place it's your only
>Single point queries work fine with the applet, so will pans and zooms on a
> > Also, has anyone written a script to dynamically display feature
> > (such as the name of a feature) in the browser's status window during
> > mouseover?
>There was a short thread on this last week. Check the archive for details.
> > I would really appreciate any help than can be provided! Thanks in
> > -David Raitzer
>Internet Applications Analyst
>500 Lafayette Road
>St. Paul, MN 55155
Get your FREE download of MSN Explorer at http://explorer.msn.com
More information about the mapserver-users