Help needed in ImageMap

Pratap dwija_dey at REDIFFMAIL.COM
Sat May 27 02:22:46 EDT 2006


  
Hi
  Steve
     I noticed that the html result of mapserver doesnot contain
the mapid etc. part like this->
 
@<map id="mymap" name="mymap">
@    <area shape="polygon" coords="96,42 104,43 105,15 106,16 109,18 @114,16 119,20 120,20 120,22 121,29 122,34 123,36 126,51 126,55 @125,56 125,59 128,62 129,62 130,63 132,64 137,65 138,65 137,88 @100,88 100,75 94,75 95,63 107,63 107,48 104,50 100,51 99,51 97,49 @96,47 97,46 96,45 96,42" onMouseOver="return escape('Lake of the @Woods')" onMouseOut="showText()" href="javascript:selectArea('Lake 
@ of the Woods','39')" alt="Lake of the Woods">

 Why this part is not coming? Can u plz tell me the href part of the follwing, I am confused with this part. What exactly i should give here in href?
<area shape="circle" coords="[shpxy precision=0 proj=image yf=",7" xf=","]" href="http://my.url/mypage.cfm?region=[NAME]" title="[NAME]" alt="[NAME]">

Another question, whether it is necessary to use separate imagemap.map file?
 
On Fri, 26 May 2006 Pratap wrote :
>
>  Hi
>    Steve
>       I am sending the html result of the output of mapserver as a
>attachement. Tnaks for reply &
>Thanks in advance.
>With Regards
>Pratap
>
>
> >>>It would be helpfull to see the output from MapServer in this >>case. Can
> >>you post the HTML result (as an attachment) or send a link?
>
>Steve
>
> >>> "Pratap" <dwija_dey at rediffmail.com> 05/25/06 8:07 AM >>>
>
>
>Hi
>   List and Steve Lime
>     Plz. donot ignore this message.
>    I have posted a message for a help in imagemap though, i have not
>get any reply. I am trying to imulate the mouseover in browser/mapserver
> from
>http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap
>also i am keen to know from steve how to implement the mouseover that i
>saw in Steve limes SHPXY example in
>http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true
>.
>
>  My quries are given below(Specially to Steve for the example that he
>has implemented). Hope this time i will get solutions from Steve/List.
>Thanks in advance
>With Regards.
>Pratap
>
>
>
>On Fri, 12 May 2006 Pratap wrote :
> >
> >Hi
> >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap
> >I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality.
> >
> >   My Mapfile for imagemap is:
> >   .........
> >   LAYER
> >      NAME "city"
> >      TYPE POINT
> >      STATUS ON
> >      DATA "city"
> >      CLASSITEM "name"
> >       CLASS
> >         NAME "CITY NAME"
> >         EXPRESSION /A*/
> >         COLOR 255 0 0
> >         OUTLINECOLOR 255 0 0
> >       END
> >       TEMPLATE "bodytemplate.html"
> >       HEADER "imapheader.html"
> >       FOOTER "imapfooter.html"
> >   END
> >............
> >
> >The content of template file bodytemplate.html is.
> ><area shape="circle" coords="[shpxy precision=0 proj=image yf=",4" xf=","]" href="http://my.url/mypage.cfm?region=[name]" title="[name]" alt="[name]">
> >
> >Q.1)What will be the exact value of href above?
> >
> >The content of template file imapheader.html is.
> ><map id="mymap" name="mymap">
> >
> >Q.2)What will be the value of id and name above?
> >
> >The content of template file imapheader.html is.
> ></map>
> >
> >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver
> >
> >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should
> >place it ? and i am using Gmap's PHP/Mapscript engine.
> >
> >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated.
> >Thanks in advance for any help.
> >With regards.
> >Pratap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060527/6e701c80/attachment.html


More information about the mapserver-users mailing list