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



-- 
Jachym Cepicky
e-mail: [EMAIL PROTECTED]
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to