Re: [mapserver-users] Position of label

2010-01-26 Thread Milo van der Linden
If your AJAX webmap client of choice happens to be OpenLayers, there are 
better ways to do this.


Assuming you don't want the whole world labeled, you might consider 
using a WFS layer instead of a WMS layer. Then you can use OpenLayers to 
create *real* vector layers that can even have effects such as light up 
or resize *and* make the mouse cursor change when moving over a label or 
object. Plus it will give you the option to open up pop-up balloons, 
something you will hardly get done using a raster-layer only.


Otherwise, you are in there on your own. Your ajax script would need to 
translate real coordinates to pixel coordinates, guess label coordinates 
and stuff.. I would not go there if I where you.


Don't invent wheels, ride great cars

Kind regards,

Milo van der Linden

Jan Hartmann wrote:

Hi folks,

Is there a way to get back the exact position of the labels in a 
MapServer map? I want to make the labels clickable with Ajax, so a x-y 
values in image coordinates would be enough. I looked in the Template 
and Mapscript docs, but couldn't find anything about the (computed) 
position of labels.


Jan
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Position of label

2010-01-18 Thread Yewondwossen Assefa

Jan Hartmann wrote:

Hi folks,

Is there a way to get back the exact position of the labels in a 
MapServer map? I want to make the labels clickable with Ajax, so a x-y 
values in image coordinates would be enough. I looked in the Template 
and Mapscript docs, but couldn't find anything about the (computed) 
position of labels.


Jan

Hi Jan,

This should be available pretty soon in trunk using Mapserver Templates 
(http://trac.osgeo.org/mapserver/ticket/3241), Please add your name in 
CC on this bug for comments/suggestions.


best regards,



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users