[OpenLayers-Users] 'Markers layer' ... is this possible?

Christopher Schmidt crschmidt at crschmidt.net
Tue Jun 6 17:38:31 CDT 2006


On Tue, Jun 06, 2006 at 11:15:13PM +0100, nick at hogweed.org wrote:
> 
> What I am interested in though is retrieving the markers next time the user 
> visits the site. Does OpenLayers have any automated way to retrieve a 
> 'markers layer' as you scroll the map? i.e. as you scroll around, the markers 
> on each tile are retrieved as well as the underlying map? Or do I need to 
> implement it myself with AJAX?

The way that one of our layers (the WFS layer) does this is to load
markers in 'tiles' -- use an XMLHttpRequest to load data from a given
tile as you scroll. This means that you're not constantly needing to
check whether your data is complete -- no XMLHttpRequest at the end of
every drag, I mean, -- but that you also don't have to load the entire
world right away.

You could do a similar thing with any format.

If you have questions about this specific method, feel free to ask them:
I can probably help you create a layer which better represents your
needs if you can't get it working.

-- 
Christopher Schmidt
Web Developer


More information about the Users mailing list