[OpenLayers-Users] text layer popup

Jachym Cepicky jachym.cepicky at gmail.com
Sat Jun 16 13:07:38 EDT 2007


textlayer.markers[INDEX].events.triggerEvent('click', {});

I found this in tests/Layer/test_Text.html  is there a place in
documentation, where I should look first? I could not find it :-/

Thanks

Jachym

Jachym Cepicky píše v So 16. 06. 2007 v 18:58 +0200:
> hi,
> 
> is there a way, how to zoom to specified feature from
> OpenLayers.Layer.Text() ?
> 
> In my page, I did it like this:
> 
> <ul id="zoomto">
>                 <li
> onClick="zoomTo(50.43724402945837,14.580884007045201)">Penzion</li>
>                 <li
> onClick="zoomTo(50.439443430852435,14.579766736711777)">Parking
> place</li>
>                 <li
> onClick="zoomTo(50.44029094759348,14.576759229387553)">Castle</li>
> 
> 
>             </ul>
> 
> And I defined function zoomTo like
> 
> function zoomTo(lat,lon){
>                     map.setCenter(new OpenLayers.LonLat(lon,lat),15);
>                     
>                 }
> 
> 
> This works, but would there be some better way?
> 
> I would also need, that the <div> with the description of selected point
> of interest would popup (just like one would click on it in the map). 
> 
> Is there some 
> 
> 	textlayer.ShowDescription(lon,lat); 
> 
> or similar function?
> 
> Thanks
> 
> Jachym
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
-- 
Jachym Cepicky
e-mail: jachym.cepicky at gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070616/da81bc10/attachment.bin


More information about the Users mailing list