[OpenLayers-Users] different coords format

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Mon Dec 10 07:19:26 EST 2007


You can use the function getLonLatFromViewPortPx on the map object.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: R. Ortner <reinhard.ortner at edu.fh-kaernten.ac.at>
Naar: users at openlayers.org <users at openlayers.org>
Onderwerp: [OpenLayers-Users]  different coords format
Datum: 10/12/07 10:16

> 
> hi,
> 
> I´m trying to change the GetFeatureInfo request a little bit (to display a
> ka-map layer query) but have some trouble with the coordinate.
> 
> I´m using basically this source code:
> 
> var request =  window[id].getFullRequestString({
>                             REQUEST: &quot;GetFeatureInfo&quot;,
>                             EXCEPTIONS:
&quot;application/vnd.ogc.se_xml&quot;,
>                             BBOX: window[id].map.getExtent().toBBOX(),
>                             X: e.xy.x,
>                             Y: e.xy.y,
>                             INFO_FORMAT: 'text/html',
>                             QUERY_LAYERS: window[id].params.LAYERS,
>                             WIDTH: window[id].map.size.w,
>                             HEIGHT: window[id].map.size.h});
> 
> now the problem is, the information I get for X and Y is e.g.: 
>    &amp;X=314&amp;Y=319
> 
> what I need is to change the coords to ka-map confirm coordinates in that
> format:
> &amp;coords=474133.0773014716,181821.5684830197
> 
> I hope someone have an idea how i change the e.xy.x and the e.xy.y to geht
> the coords format I need.
> 
> 
> 
> -- 
> View this message in context:
http://www.nabble.com/different-coords-format-tp14251884p14251884.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 






More information about the Users mailing list