Re: Retrieve coordinates from a map

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Retrieve coordinates from a map

Christian López Espínola
http://openlayers.org/dev/examples/controls.html

On 11/15/06, Jacopo Boari <[hidden email]> wrote:

>
>
>
>
> Hi Everybody,
>
>
>
> How can I retrive the cursor's position in the map?
>
>
>
> There's a method that return the coordinates?
>
>
>
> Thanks in advance
>
>
>
>
>
> Jacopo Boari
>
>  Sysgroup srl - Lungo Dora Colletta 113/14 - 10153 Torino
>  tel 0112440983   fax 0112406561
>  e-mail [hidden email]           www.sysgroup.it
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://openlayers.org/mailman/listinfo/users
>
>
>


--
Christian López Espínola
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Retrieve coordinates from a map

Brent Pedersen
hi, i just did this yesterday like this (thanks crschmidt) :

OpenLayers.Event.observe($('map'),"click",mapclicked.bindAsEventListener(map));
function mapclicked(e){
            var LL = this.getLonLatFromPixel (e.xy)
            //console.debug(LL)
            alert(LL.lon + "," + LL.lat)
}



On 11/18/06, Christian López Espínola < [hidden email]> wrote:
http://openlayers.org/dev/examples/controls.html

On 11/15/06, Jacopo Boari <[hidden email]> wrote:

>
>
>
>
> Hi Everybody,
>
>
>
> How can I retrive the cursor's position in the map?
>
>
>
> There's a method that return the coordinates?
>
>
>
> Thanks in advance
>
>

>
>
>
> Jacopo Boari
>
>  Sysgroup srl - Lungo Dora Colletta 113/14 - 10153 Torino
>  tel 0112440983   fax 0112406561
>  e-mail [hidden email]           www.sysgroup.it
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://openlayers.org/mailman/listinfo/users
>
>
>


--
Christian López Espínola
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Retrieve coordinates from a map

Erik Uzureau
I have added this to the FAQ, along with a link to an excellent new
entry to the examples dir that illustrates this one:

http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Map

On 11/19/06, Brent Pedersen <[hidden email]> wrote:

> hi, i just did this yesterday like this (thanks crschmidt) :
>
> OpenLayers.Event.observe($('map'),"click",mapclicked.bindAsEventListener(map));
> function mapclicked(e){
>             var LL = this.getLonLatFromPixel (e.xy)
>             //console.debug(LL)
>             alert(LL.lon + "," + LL.lat)
>
> }
>
>
>
> On 11/18/06, Christian López Espínola < [hidden email]> wrote:
> > http://openlayers.org/dev/examples/controls.html
> >
> > On 11/15/06, Jacopo Boari <[hidden email]> wrote:
> > >
> > >
> > >
> > >
> > > Hi Everybody,
> > >
> > >
> > >
> > > How can I retrive the cursor's position in the map?
> > >
> > >
> > >
> > > There's a method that return the coordinates?
> > >
> > >
> > >
> > > Thanks in advance
> > >
> > >
> > >
> > >
> > >
> > > Jacopo Boari
> > >
> > >  Sysgroup srl - Lungo Dora Colletta 113/14 - 10153 Torino
> > >  tel 0112440983   fax 0112406561
> > >  e-mail [hidden email]           www.sysgroup.it
> > >
> > >
> > > _______________________________________________
> > > Users mailing list
> > > [hidden email]
> > > http://openlayers.org/mailman/listinfo/users
> > >
> > >
> > >
> >
> >
> > --
> > Christian López Espínola
> > _______________________________________________
> > Users mailing list
> > [hidden email]
> > http://openlayers.org/mailman/listinfo/users
> >
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://openlayers.org/mailman/listinfo/users
>
>
>
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users