[mapserver-users] zooming to a point with itemquerymap

Brian Fischer bfischer at mpls.houstoneng.com
Mon Apr 29 13:38:44 PDT 2002


Hi MapServer Users,

 

I am trying to embed a mapserver generated image inside an ASP page and
am having some problems.  I don't even know if this is possible, but
here it goes.

 

I am trying to use the itemquerymap mode to produce a map of the
selected point.  I can get a map zoomed to the full extent of my map
file, but I can not get a map zoomed in on the point.

 

Here is the image tag inside the asp page.  This produces a map at full
extent.

<img
src="/mapserv35/cgi-bin/mapserv.exe?map=sitemap.map&mode=itemquerymap&la
yers=&qlayer=wqsites4-25-02&map_wqsites4-25-02_filter=%22<%=rsSiteMap("s
iteid")%>%22&item=SITEID&value=<%=rsSiteMap("siteid")%>">

 

 

As soon as I put parameters in to zoom to the point, I get an error. 

<img
src="/mapserv35/cgi-bin/mapserv.exe?map=sitemap.map&mode=itemquerymap&la
yers=&qlayer=wqsites4-25-02&map_wqsites4-25-02_filter=%22<%=rsSiteMap("s
iteid")%>%22&item=SITEID&value=<%=rsSiteMap("siteid")%>&mapxy=[shpmid]&b
uffer=50000">

 

 I believe the reason why it does not work is because MapServer isn't
replacing [shpmid] with it's value.  I think this is a limitation of the
itemquerymap or I am simply using it wrong.  Has anyone done a similar
thing using only Mapserv CGI not mapscript?  Are there other modes I
could use to produce the same map?

 

Thanks,

Brian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020429/31dbf54f/attachment.htm>


More information about the MapServer-users mailing list