<P>
<BR>
Hi<BR>
Steve/List <BR>
The mapserver is generating the imagefile(text/html) in imagelocations(IMAGEPATH). This is done by using the following three lines of PHP codes.<BR>
1)$map2 = ms_newMapObj("/usr/local/apache/htdocs/gmap/htdocs/imagemap.map");<BR>
2)$img2 = $map2->draw();<BR>
3)$imagemap_url = $img2->saveWebImage(MS_IMAGEMAP, 0, 0, 0); <BR>
<BR>
But in the imagemapfile i am not getting the desired field and its value from .dbf file. Please check it out in the attachment section. What i am trying here is that i will include the imagemap file in my .phtml and then try to display the result as a tooltip.<BR>
<BR>
One line from imagemap file is given below<BR>
<area href="java-script:SymbolClicked();" shape="circle" coords="201,150, 3" /><BR>
<BR>
Everything is perfect in the above line but after coords ="201 .." i should get the desired field from my .dbf file & though all the template files imapheader.html, bodytemplate.html, imapfooter.html are there in the template section(i mentioned it in the mapfile also). Can you please point out the error for which i am not getting the desired result? Or the template files are not needed here as i am using the PHP/mapscript?<BR>
<BR>
Another question, Is that the coords in the imagemap file by which, i will extrct the information for my tooltip?<BR>
<BR>
<BR>
On Wed, 31 May 2006 Steve Lime wrote :<BR>
>There is no image map in that output???<BR>
><BR>
>Steve<BR>
><BR>
> >>> "Pratap" <dwija_dey@rediffmail.com> 5/26/2006 7:16:32 AM >>><BR>
><BR>
> Hi<BR>
> Steve<BR>
> I am sending the html result of the output of mapserver as a<BR>
>attachement. Tnaks for reply &<BR>
>Thanks in advance.<BR>
>With Regards<BR>
>Pratap<BR>
><BR>
><BR>
> >>>It would be helpfull to see the output from MapServer in this >>case. Can<BR>
> >>you post the HTML result (as an attachment) or send a link?<BR>
><BR>
>Steve<BR>
><BR>
> >>> "Pratap" <dwija_dey@rediffmail.com> 05/25/06 8:07 AM >>><BR>
><BR>
><BR>
>Hi<BR>
> List and Steve Lime<BR>
> Plz. donot ignore this message.<BR>
> I have posted a message for a help in imagemap though, i have not<BR>
>get any reply. I am trying to imulate the mouseover in browser/mapserver<BR>
> from<BR>
>http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap<BR>
>also i am keen to know from steve how to implement the mouseover that i<BR>
>saw in Steve limes SHPXY example in<BR>
>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<BR>
>.<BR>
><BR>
> My quries are given below(Specially to Steve for the example that he<BR>
>has implemented). Hope this time i will get solutions from Steve/List.<BR>
>Thanks in advance<BR>
>With Regards.<BR>
>Pratap<BR>
><BR>
><BR>
><BR>
>On Fri, 12 May 2006 Pratap wrote :<BR>
> ><BR>
> >Hi<BR>
> >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap<BR>
> >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.<BR>
> ><BR>
> > My Mapfile for imagemap is:<BR>
> > .........<BR>
> > LAYER<BR>
> > NAME "city"<BR>
> > TYPE POINT<BR>
> > STATUS ON<BR>
> > DATA "city"<BR>
> > CLASSITEM "name"<BR>
> > CLASS<BR>
> > NAME "CITY NAME"<BR>
> > EXPRESSION /A*/<BR>
> > COLOR 255 0 0<BR>
> > OUTLINECOLOR 255 0 0<BR>
> > END<BR>
> > TEMPLATE "bodytemplate.html"<BR>
> > HEADER "imapheader.html"<BR>
> > FOOTER "imapfooter.html"<BR>
> > END<BR>
> >............<BR>
> ><BR>
> >The content of template file bodytemplate.html is.<BR>
> ><area shape="circle" coords="[shpxy precision=0 proj=image yf=",4" xf=","]" href="http://my.url/mypage.cfm?region=[name]" title="[name]" alt="[name]"><BR>
> ><BR>
> >Q.1)What will be the exact value of href above?<BR>
> ><BR>
> >The content of template file imapheader.html is.<BR>
> ><map id="mymap" name="mymap"><BR>
> ><BR>
> >Q.2)What will be the value of id and name above?<BR>
> ><BR>
> >The content of template file imapheader.html is.<BR>
> ></map><BR>
> ><BR>
> >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver<BR>
> ><BR>
> >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should<BR>
> >place it ? and i am using Gmap's PHP/Mapscript engine.<BR>
> ><BR>
> >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated.<BR>
> >Thanks in advance for any help.<BR>
> >With regards.<BR>
> >Pratap<BR>
</P>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3"><IMG SRC="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&PARTNER=3" BORDER=0 VSPACE=0 HSPACE=0></a>