map extent

Matthew Lock matthew at MAPSOLUTIONS.COM.AU
Tue Apr 3 00:51:44 PDT 2007


Why don't you just add all the layers into the map and use zoom layering to
decide which layer the user sees based on the current extent?


boice tomlin wrote:
> 
> 
> Hello,
> 
> I have a few different shape files at different resolutions that I  
> want to load based on the extent of the map the user is viewing.
> 
> So if they are viewing the entire country for instance I want to load  
> in my low resolution data set.
> 
> The problem I'm having is that if a user zooms in on the map I have  
> to create the map object using the map file which specifies which  
> shapefile I am using, then use phpmapscript to zoom in, and then  
> retrieve the extent using phpmapscript functions.  This obviously  
> doesn't help me load in the appropriate shapefile because I have to  
> create the map object in order to do any of the previous steps.  A  
> bit of a paradox - load in the shapefile only to find out that I  
> might have wanted to use a different shapefile...
> 
> So the short question is how can I zoom in and get the extent before  
> loading the shapefile?
> 
> thanks,
> 
> boice
> 
> 
> ////////////////////////////
> Run Skip
> http://runskip.com/
> 
> boice tomlin
> 
> boice at runskip.com
> 
> 503-528-6204
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/map-extent-tf3495584.html#a9805206
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list