[OSM-talk] OpenLayers Vector-based OSM editor

Christopher Schmidt crschmidt at metacarta.com
Fri Apr 6 12:20:46 BST 2007


On Fri, Apr 06, 2007 at 11:35:08AM +0100, Nick Whitelegg wrote:
> On Thursday 05 Apr 2007 23:58, you wrote:
> > Nick Whitelegg wrote:
> > > Seems to work on both Firefox 1.5 and IE 6 - though the map doesn't
> > > appear on IE until you drag.
> >
> > In Firefox 2.0.0.2 on Ubuntu Edgy, I can completely lock up Firefox by
> > zooming out from the default location, panning over to my location
> > (52n,106w) and zooming in.  I did this three times in a row.  It must be
> > a bug in FF, as nothing should lock it right up, but is there anything I
> > can do to help track down what is tickling the FF bug?
> >
> > ttyl
> > srw
> 
> I haven't tested zooming out yet - it's probably best for the moment if you 
> just play around with the default location. A search (by town) facility will 
> be added later. 

So, I've figured out this problem: Because of the way SVG works, if you
have a set of data which creates a Very Large SVG Canvas, it seems
firefox starts to choke.

The answer to this is two fold:

1. Erase features from the layer that are outside the viewing area.
   (Warn users about this if they haven't saved yet.)

2. Do some logic in OpenLayers to figure out when the canvas is going to
   be very large, and don't draw features which are way off the map.

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the talk mailing list