On Wednesday, August 19, 2009, kennyken <[email protected]> wrote:
>
> Here is what I’m trying to do.
> I have google maps as my base layer.  Then I have a polygon layer on top of
> that.
> What I’m trying to do is link to a particular polygon and highlight it via a
> hyperlink somewhere on my website.
>
> For example I would have a link similar to
> http://mywebsite/map.html/polygonIDNumber/
>
> That would then open the map and zoom to and highlight the polygon that is
> identified in the URL.
> I’ve look at several example and I can’t find what I’m looking for. Any help
> would be appreciated.

Hi. You might find the OpenLayers.Util.createUrlObject() function
useful. Using this function you should be able to get the feature id
from the page URL.

Cheers,
>
> --
> View this message in context: 
> http://n2.nabble.com/Zoom-to-feature-and-highlight-it-tp3472183p3472183.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to