On Sat, Jun 02, 2007 at 03:13:53PM +0200, Eric Lemoine wrote: > On 5/31/07, kaka <[EMAIL PROTECTED]> wrote: > > > > I am trying to add a closebox to some markers, but I can??t get the close > > boxes to show up. See http://www.villageografica.com/test50/test.html for a > > test. The markers are located in > > http://www.villageografica.com/test50/ProjectLocations.txt . What am I doing > > wrong here? > > Unfortunatly I don' think you can have closeboxes with a Text layer. > Indeed, the Text layer uses feature.createPopup() as opposed to > feature.createPopup(true). What you can do is create a class that > inherits from OpenLayers.Layer.Text and overrides the markerClick() > method - something along these lines (*untested*) :
Just to throw my weight behind this: this is probably true at the moment, and Eric's suggested fix is about right (though I've similarly not tested it). I would consider this a bug though, and would take a patch to fix it. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
