[mapserver-users] zooming to a point feature in 3.5 version
laurentiu lionte
llionte at yahoo.com
Thu Apr 11 07:07:18 PDT 2002
Ok, thanks to Brian Fischer <bfischer at mpls.houstoneng.com>
for advice regarding itemquery. Finally I've found query examples for 3.5 version at http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/itemquery/test.html
and all goes ok for polygon features. I have trouble zooming to a point feature instead
a polygon feature. I need to make the same query like in example 1 using points features instead polygons.
using:
src="/cgi-bin/mapserv?map=[map]&codent=1000&mode=itemquerymap&mapext=shapes&qlayer=[qlayer]" height="300" width="300"
in my template, works for polygons
I've tryed this for point features in my template:
src="/cgi-bin/mapserv?map=[map]&codent=1000&mode=itemquerymap&mapext=shapes&qlayer=[qlayer]&scale=5000&mapxy=[shpmid]" height="300" width="300"
and doesn't work
my map is:
MAP
NAME testzoom
SHAPEPATH "data"
SIZE 300 300
EXTENT 0 0 1 1
WEB
IMAGEPATH "../tmp/
IMAGEURL "/~laur/tmp/"
END
QUERYMAP
STATUS ON
STYLE HILITE
COLOR 255 255 0
END
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
LAYER
NAME testpoint
DATA testpoint
STATUS DEFAULT
TYPE POINT
FILTERITEM cod
FILTER "%codent%"
CLASS
SYMBOL 'circle'
MINSIZE 4
MAXSIZE 10
SIZE 7
COLOR 212 212 212
OUTLINECOLOR 0 0 0
TEMPLATE testzoom.htm
END
END
END
Thank you for any help,
Lawrence
---------------------------------
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020411/c7888909/attachment.htm>
More information about the MapServer-users
mailing list