box zooming

Dylan Beaudette dylan at IICI.NO-IP.ORG
Fri Apr 22 14:13:36 EDT 2005


Steve,

yes, my previous project (where i copied the map file from) was using an image
legend.

i was able to get a working legend after creating a HTML legend template, as
described on the mapserver website. this approach is a little cleaner than
what we had before as well.

thanks for the tips!

Dylan

On Friday 22 April 2005 10:20 am, Steve Lime wrote:
> It does if all you did is copy files. Actually an image legend is
> easier. You just have
> to create an image where the legend div is and update it's src. Try the
> attached script,
> it should be close...
>
> Steve
>
> >>> Dylan Beaudette <dylan at iici.no-ip.org> 4/22/2005 10:22:27 AM >>>
>
> Well... this project is based on a map file where i was using image
> legends...
>
> Looking at this page on HTML legends, it looks like i should be able to
>
> cobble something together.
>
> Just one question, does the DHTML mapserver interface expect an HTML
> legend?
>
> thanks!
>
> On Apr 22, 2005, at 7:58 AM, Steve Lime wrote:
> > Gee that looks familiar. Are you trying to use image legends or html
> > legends?
> >
> > Steve
> >
> >>>> Dylan Beaudette <dylan at iici.no-ip.org> 4/21/2005 5:26:59 PM >>>
> >
> > Steve,
> >
> > Thanks for the quick responses. I started a new thread on this
>
> topic,
>
> > and
> > included the link to the actual application there.
> >
> > here it is again:
> > http://169.237.35.250/~dylan/mapserver/dhtml/landview_dhtml_x.html
> >
> > thanks!
> >
> > On Thursday 21 April 2005 03:15 pm, Steve Lime wrote:
> >> It would be easier to help if we could see the whole application.
> >
> > Off
> >
> >> the top of my head I would think
> >> there might be a problem with div names, make sure those jive...
> >>
> >> Steve
> >>
> >>>>> Dylan Beaudette <dylan at IICI.NO-IP.ORG> 4/21/2005 1:51:34 PM >>>
> >>
> >> Bart,
> >>
> >> Wow! you were right - i was able to fix up my old mapserver
> >
> > application
> >
> >> with
> >> the source fromthe UMN site!!
> >>
> >> however, i noticed that my legend does not seem to be rendered.
> >>
> >> i modified the source of the UMN page, near the legendURL section;
> >>
> >> ------------------
> >> // update the legend
> >>     var legendURL =
> >
> > "http://169.237.35.250/cgi-bin/mapserv?map=/home/dylan/public_html/
> > mapserve
> >
> >> r/mapunit/fresno_w.map&mode=legend&layers=" + ms.getlayerlist('+')
>
> +
>
> >> "&mapext=" + ms.extent[0] + "+"  +
> >> ms.extent[1] +
> >> "+"  + ms.extent[2] + "+"  + ms.extent[3] + "&mapsize=" + ms.width
>
> +
>
> >> "+" +
> >> ms.height;
> >>     legend.setcontent(legendURL);
> >> -------------------------------
> >>
> >> i know that the variable 'legendURL' is valid, as it expands to the
> >> working:
> >
> > http://169.237.35.250/cgi-bin/mapserv?map=/home/dylan/public_html/
> > mapserver
> >
> >> /mapunit/fresno_w.map&mode=legend&layers=&mapext=
> >> -2133333.6828213334+-216382
> >> .321635+-1954777.1482586667+-82464.920713&mapsize=640+480
> >>
> >>
> >> ... but somehow the legend image is not drawn...
> >>
> >> any ideas on this one?
> >>
> >> thanks for the help!!
> >>
> >>
> >> --
> >> Dylan Beaudette
> >> Soils and Biogeochemistry Graduate Group
> >> University of California at Davis
> >> 530.754.7341
> >>
> >> On Thursday 21 April 2005 09:05 am, Bart van den Eijnden wrote:
> >>> Hi Dylan,
> >>>
> >>> view source is enough (at least it was for me), you can see the
> >>
> >> references
> >>
> >>> to the various javascript libraries used and download them, also
> >
> > how
> >
> >> to
> >>
> >>> use them in the HTML page itself.
> >>>
> >>> Best regards,
> >>> Bart
> >>>
> >>> On Thu, 21 Apr 2005 08:58:16 -0700, Dylan Beaudette
> >>
> >> <dylan at IICI.NO-IP.ORG>
> >>
> >>> wrote:
> >>>> is there a place to see tis code, or is the HTML source on that
> >>
> >> page
> >>
> >>>> enough?
> >>>>
> >>>> thanks!
> >>>>
> >>>> On Apr 21, 2005, at 1:37 AM, Bart van den Eijnden wrote:
> >>>>> Have a look at DBox, eg:
> >>>>>
> >>>>> http://www.dnr.state.mn.us/maps/landview_dhtml_x.html
> >>>>>
> >>>>> Best regards,
> >>>>> Bart
> >>>>>
> >>>>> Bart van den Eijnden
> >>>>> Syncera-ITSolutions
> >>>>> Postbus 270
> >>>>> 2600 AG  DELFT
> >>>>>
> >>>>> tel.nr.: 015-7512436
> >>>>> email: BEN at Syncera-ITSolutions.nl
> >>>>>
> >>>>>>>> Juan Baron <jbarong at HOTMAIL.COM> 04/21/05 10:35am >>>
> >>>>>
> >>>>> Hello:
> >>>>>
> >>>>> Is possible to do box zooming without applet?
> >>>>>
> >>>>> Thank's
> >>>>
> >>>> --
> >>>> Dylan Beaudette
> >>>> Soils and Biogeochemistry Graduate Group
> >>>> University of California at Davis
> >>>> 530.754.7341
> >>>
> >>> --
> >>> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
> >
> > --
> > Dylan Beaudette
> > Soils and Biogeochemistry Graduate Group
> > University of California at Davis
> > 530.754.7341
>
> --
> Dylan Beaudette
> Soils and Biogeochemistry Graduate Group
> University of California at Davis
> 530.754.7341

--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341



More information about the mapserver-users mailing list