Here´s my request:
var request = window[id].getFullRequestString({
q_type: "0",
extent: window[id].map.getExtent().toBBOX(),
coords:
window[id].map.getLonLatFromPixel(e.xy.x, e.xy.y),
},
"http://172.21.18.45/ka-map/map_query_float.php?map=geoland_test&groups=Abflussstation");
the problem is still the coords, here´s the actuall request:
http://172.21.18.45/ka-map/map_query_float.php?map=geoland_test&groups=Abflussstation&g=Abflussstation&i=png&transparent=true&q_type=0&extent=385077.280363%2C131098.74813%2C600412.719637%2C227054.25187&coords=lon%3DNaN%2Clat%3DNaN
still something wrong with the coords, any idea?
Pierre GIRAUD wrote:
>
> You should have something better using :
>
> var coords = window[id].map.getLonLatFromPixel(e.xy.x, e.xy.y);
>
> Then you can access coords.x and corrds.y.
>
> Regards
>
> On Dec 10, 2007 2:05 PM, Ortner Reinhard
> <[EMAIL PROTECTED]> wrote:
>> thx, but back to my question :)
>>
>> can i use it like:
>>
>> coords: getLonLatFromPixel(e.xy.x, e.xy.y)
>>
>> because it doesn´t work like that
>>
>> ________________________________
>>
>> Von: [EMAIL PROTECTED] im Auftrag von Bart van den Eijnden
>> (OSGIS)
>> Gesendet: Mo 10.12.2007 13:59
>> An: Christopher Schmidt
>> Cc: [email protected]
>> Betreff: Re: [OpenLayers-Users] different coords format
>>
>>
>>
>> Hi Chris,
>>
>> thanks for the clarification, so why is it labeled as an API Method if it
>> is
>> meant to be internal?
>>
>> Best regards,
>> Bart
>>
>> --
>> Bart van den Eijnden
>> OSGIS, Open Source GIS
>> http://www.osgis.nl <http://www.osgis.nl/>
>>
>>
>>
>> --------- Oorspronkelijk bericht --------
>> Van: Christopher Schmidt <[EMAIL PROTECTED]>
>> Naar: Bart van den Eijnden OSGIS <[EMAIL PROTECTED]>
>> Cc: R. Ortner <[EMAIL PROTECTED]>,
>> [email protected]
>> Onderwerp: Re: [OpenLayers-Users] different coords format
>> Datum: 10/12/07 10:56
>>
>> > On Mon, Dec 10, 2007 at 01:19:26PM +0100, Bart van den Eijnden (OSGIS)
>> wrote:
>> > > You can use the function getLonLatFromViewPortPx on the map
>> object.
>> >
>> > actually, getLonLatFromPixel is the right function to use here:
>> > "FromViewPortPx" is a more internal function that we wrap up
>> with
>> > getLatLonFromPixel.
>> >
>> > Regards,
>> > --
>> > Christopher Schmidt
>> > MetaCarta
>> >
>> >
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context:
http://www.nabble.com/Re%3A-different-coords-format-tp14251954p14252733.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users