[Mapserver-users] shpxy
Paul Spencer
spencer at dmsolutions.ca
Tue Mar 9 12:37:11 PST 2004
Hi,
I'm using the [shpxy xf="," transform] in a template to create imagemaps
... the imagemap onmouseover/onmouseout dynamically positions a dhtml
div element over the feature in the map. This works exceptionally well
for points but it doesn't work for polygons.
Is there anything I can use in a template to get a centroid value for a
polygon (rather than all the points)?
Also, has anyone tried to do this for lines? I'm using mapscript and
generating the template dynamically based the type of a selected layer.
Right now my approach is to get the points that make up lines and then
create polygons by buffering the lines ... this is obviously quite a lot
of work in php :)
Cheers,
Paul
--
-----------------------------------------------------------------
|Paul Spencer spencer at dmsolutions.ca |
|-----------------------------------------------------------------|
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
-----------------------------------------------------------------
More information about the MapServer-users
mailing list