[OpenLayers-Users] Zoom to feature and highlight it

Eric Lemoine eric.lemoine at camptocamp.com
Wed Aug 19 12:12:21 EDT 2009


On Wednesday, August 19, 2009, kennyken <asseltine1 at hotmail.com> 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
> Users at openlayers.org
> 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 : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list