[OpenLayers-Users] GeoRSS layer - how to change link target?

Eric Lemoine eric.lemoine at camptocamp.com
Mon Mar 1 02:23:33 EST 2010


On Monday, February 22, 2010, Bjørn Sandvik <bjorn at thematicmapping.org> wrote:
> Hi,
>
> The default behavior of OpenLayers.Layer.GeoRSS is to open links shown
> in marker popups in a new browser window (target="_blank"). This seems
> to be hardcoded GeoRSS.js (line 203):
> http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Layer/GeoRSS.js
>
> Is it possible to change this behavior? I would like all links to open
> in the same browser window.

Hi Bjørn

You could obviously override the parsaData method. I personnally
wouldn't do that, instead I'd try to use Layer.Vector with
Format.GeoRSS, which should give more flexibility. Have you considered
it?

Cheers,

-- 
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