[OpenLayers-Users] Problems displaying popup
Marc Jansen
jansen at terrestris.de
Wed Oct 14 11:01:25 EDT 2009
David
please reply to the list.
I forwarded your mail.
Regards,
Marc
David Alda Fernandez de Lezea schrieb:
> Hello,
>
> Ok, definitely today is not my best day. My map is in meters an in Projection EPSG:23030. I've just test the app using the function OpenLayers.getLonLatFromPixel, and finally the pop up appears, but it doesn't appear on the correct place.It appears a bit more far from the point I've clicked on.Looking at the documentation I've found this function but it doesn't say what's its objective 'getViewPortPxFromLayerPx'. Should I use this function?
>
> Thanks.
>
>
>
>
> Un saludo,
>
> ··················································································
>
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
> IKT
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
> ··················································································
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
> ··················································································
> email: dalda at ikt.es web: www.ikt.es
> ··················································································
>
> -----Mensaje original-----
> De: Marc Jansen [mailto:jansen at terrestris.de]
> Enviado el: miércoles, 14 de octubre de 2009 16:07
> Para: David Alda Fernandez de Lezea
> CC: users at openlayers.org
> Asunto: Re: [OpenLayers-Users] Problems displaying popup
>
> Hi David,
>
> are posx and posy in the same units as the maps' projection demands it?
>
> What does (using the Firefox Plugin Firebug) console.log(popup) show?
>
> Regards,
> Marc
>
>
> David Alda Fernandez de Lezea schrieb:
>
>> Hello, I'm having some troubles trying to show a popup in openlayers.
>> I'm using this code in the map:
>>
>> var popup = new OpenLayers.Popup("chicken", new
>> OpenLayers.LonLat(posx,posy),new OpenLayers.Size(200,200),"Example
>> Popup",true); map.addPopup(popup);
>>
>> where posx and posy are 2 variables that are NOT NULL. I've tested it.
>>
>> but the popup doesn't appear anywhere.
>>
>> I've already gone to de the documentation and copy paste the code that
>> is provided and still not working.
>>
>> What's going on? I'm doing something wrong??
>>
>> Thanks
>>
>> Un saludo,
>>
>>
>>
>> ······································································
>> ············
>>
>> *David Alda Fernández de Lezea*
>>
>> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y
>> Biodiversidad
>>
>>
>>
>> *IKT*
>>
>> Granja Modelo s/n · 01192 · Arkaute (Araba)
>>
>>
>> ··················································································
>> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
>> ······································································
>> ············
>> email: dalda at ikt.es
>> <mailto:dalda at ikt.es> web: www.ikt.es
>> <http://www.ikt.es/>
>> ······································································
>> ············
>>
>> ----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
More information about the Users
mailing list