[mapserver-users] Map Not Available at This Scale Image

Donald Kerr donald.kerr at dkerr.co.uk
Thu Jun 14 14:06:30 PDT 2012


Steve,
 
I don't think that any of those options will work for me. I have fifteen
zoom levels and the map coverage is complete except for three. Those three
are a made up of an image returned after querying PostGIS so a blank image
is effectively created since there are no points, lines or polygons returned
from the PostGIS query at that zoom level i.e. to all intents and purposes,
a valid map is returned except that there's noting in it. It's these
particular zoom levels where I am trying to display the "no coverage'
message. I had thought that it may be possible to create a permanent layer
that's always there under all the layers and is effectively overwritten by
any drawn layers above except where there's no data. I'm thinking now that
this may not be possible. 
 
Many thanks.
 
Regards,
 
Donald

-----Original Message-----
From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] 
Sent: 14 June 2012 21:54
To: Donald Kerr; 'MAPSERVER USERS'
Subject: RE: [mapserver-users] Map Not Available at This Scale Image



Couple of options.

 

1)      You can create a layer that displays that text in the middle of the
map and have it turn on below a certain scale. If doing tiling w/meta-tiling
you'd want draw the text the same number of times as you have meta-tiles.
That would take some mucking about but it's doable.

2)      There's a little used parameter in the WEB section called
MINTEMPATE/MAXTEMPLATE. MapServer will redirect to the URL specified
depending on scale. It's been ages since I used it but in theory you could
reference an image with the necessary text by URL.

 

Steve

 

From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr
Sent: Thursday, June 14, 2012 1:42 PM
To: 'MAPSERVER USERS'
Subject: [mapserver-users] Map Not Available at This Scale Image

 

Hi list,

 

I have a number of layers that are on or off depending on the zoom level and
some of those layers do not have coverage in certain areas. The question is,
is there a way to display a map image saying something along the lines of,
"Map not available at this level"?

 

I think I have read somewhere that it can be done in a round about way but I
cannot find any information after having a good internet trawl.

 

Many thanks.

 

Regards,

 

Donald

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120614/f12f21ca/attachment.htm>


More information about the MapServer-users mailing list