[OpenLayers-Users] Fetching tiles from different sources based on zoom level

Christopher Schmidt crschmidt at metacarta.com
Tue Aug 11 16:49:23 EDT 2009


On Tue, Aug 11, 2009 at 03:37:21PM -0500, Mak Kolybabi wrote:
> For my current application, I need to simplify roads as much as possible. PostGIS provides
> the ST_Simplify function for this, and it works wonderfully. For obvious reasons, the
> closer I zoom into the layer, the simplifications that were fine when zoomed further out
> gradually become unacceptable.
> 
> Is there a way to make OpenLayers query a different (TMS) source based on the zoom level?
> If this can be done, I'll be able to tune the ST_Simplify tolerance parameter for each
> zoom level.

Why not use scale-dependant rendering on the backend to select a different
datasource/layer when zoomed in vs. zoomed out?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list