[maplab-users] Confusion over map redraw during query

joanne cook j.cook at oxfordarch.co.uk
Tue Apr 19 05:50:41 EDT 2005


 
Hi List,
 
A while ago I was asking some questions about why my map redraws at a funny scale when I query it. I haven't got very much further with this problem, except to ascertain that it happens with only one map (attached and copied below). To recap: I am using maplab 2.2, with mapserver 4.4, and php 4.3.7. When using mapbrowser I load the map up and everything displays fine. Zooming and panning work fine. When I query a point on the map the query window opens and in the background the map is redrawn. When it finishes redrawing it is tiny and I have to recentre it or zoom out/in to make it redraw again, at which point it draws at the correct size. This happens whether or not I have rosa enabled.  Any help would be much appreciated...
 
Jo
 
MAP
  NAME "OS Coverage"
  STATUS ON
  EXTENT 0 0 700000 1.3e+006 
  SIZE 400 400 
  SHAPEPATH "./data"
  SYMBOLSET "./symbols35.sym"
  FONTSET "./fonts/fonts.txt"
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  UNITS METERS
  DEBUG ON
  WEB
    MINSCALE 2e+06
    MAXSCALE 5e+07
  IMAGEPATH "C:/apache/htdocs/tmp/ms_tmp/"
    IMAGEURL "/tmp/ms_tmp/"
    LOG "C:/apache/htdocs/tmp/mapserv.log"
  END
  REFERENCE
    STATUS ON
    IMAGE "./data/reference/outlinesm.jpg"
    SIZE 100 100 
    EXTENT 0 0 700000 1.3e+006 
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
    MINBOXSIZE 10
    MAXBOXSIZE 100
    MARKER "star"
    MARKERSIZE 8
  END
  QUERYMAP
    STATUS OFF
    SIZE 100 100 
    COLOR 255 0 0
    STYLE HILITE
  END
  
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    POSITION LL
    KEYSIZE 20 10 
    KEYSPACING 5 5 
    TEMPLATE "ttt"
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      OFFSET 0 0 
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  SCALEBAR
    STATUS ON
    COLOR 0 0 0
    OUTLINECOLOR 0 0 0
    IMAGECOLOR 255 255 255
    TRANSPARENT FALSE
    UNITS KILOMETERS
    INTERVALS 7
    SIZE 250 4 
    STYLE 0
    POSITION LL
    LABEL
      TYPE BITMAP
      SIZE TINY
      POSITION CC
      OFFSET 0 0 
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END
 LAYER
    NAME "050K Rasters NY"
    STATUS ON
    TILEINDEX "ny050.shp"
    TILEITEM "Location"
    GROUP "050K rasters"
  TYPE RASTER
  END
    LAYER
    NAME "050K Rasters SD"
    STATUS ON
    TILEINDEX "sd050.shp"
    TILEITEM "Location"
    GROUP "050K rasters"
  TYPE RASTER
  END
   LAYER
    NAME "CALevents"
    GROUP "CAU/CAL Sites"
    STATUS ON
    DATA "event"
    TYPE POINT
    UNITS METERS
    SIZEUNITS PIXELS
    LABELITEM "SiteCode"
    LABELMAXSCALE 200000
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    DEBUG ON
    METADATA
      "WMS_SRS"    "EPSG:BNG"
      "WMS_TITLE"    "CALevents"
      "WMS_GROUP_TITLE"    "Sites"
    END
    PROJECTION
      "init=epsg:27700" 
    END
    CLASS
      NAME "CALevents"
      TEMPLATE "./templates/calsites.html"
      LABEL
        TYPE BITMAP
        FONT "arial_black"
        SIZE SMALL
        POSITION CL
        OFFSET 0 0 
        BUFFER 4
        MINDISTANCE 300
        MINFEATURESIZE -1
        COLOR 0 0 0
        PARTIALS TRUE
        FORCE FALSE
      END
      STYLE
        SYMBOL 7
        COLOR 0 0 192
        OUTLINECOLOR 0 0 0
        SIZE 7
        MINSIZE 1
        MAXSIZE 100
      END
    END
  END
  LAYER
    NAME "OANSites"
    GROUP "LUAU/OA North Sites"
    STATUS ON
    TYPE POINT
    CONNECTIONTYPE OGR
    CONNECTION "virtual.ovf"
    UNITS METERS
    SIZEUNITS PIXELS
    LABELITEM "ProjectSiteCode"
    LABELMAXSCALE 200000
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    DEBUG ON
    METADATA
      "WMS_TITLE"    "OA North Sites"
      "WMS_GROUP_TITLE"    "Sites"
    END
    PROJECTION
      "init=epsg:27700" 
    END
    CLASS
      NAME "OANSites"
      TEMPLATE "./templates/sites.html"
      LABEL
        TYPE BITMAP
        SIZE SMALL
        POSITION CL
        OFFSET 0 0 
        BUFFER 4
        MINDISTANCE 300
        MINFEATURESIZE -1
        COLOR 0 0 0
        PARTIALS TRUE
        FORCE FALSE
      END
      STYLE
        SYMBOL 7
        COLOR 155 0 255
        OUTLINECOLOR 0 0 0
        SIZE 7
        MINSIZE 1
        MAXSIZE 100
      END
    END
  END
END

 
-------------------------------------------
Joanne Cook
Oxford Archaeology North
-------------------------------------------
-------------- next part --------------
MAP
  NAME "OS Coverage"
  STATUS ON
  EXTENT 0 0 700000 1.3e+006 
  SIZE 400 400 
  SHAPEPATH "./data"
  SYMBOLSET "./symbols35.sym"
  FONTSET "./fonts/fonts.txt"
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  UNITS METERS
  DEBUG ON
  WEB
    MINSCALE 2e+06
    MAXSCALE 5e+07
		IMAGEPATH "C:/apache/htdocs/tmp/ms_tmp/"
    IMAGEURL "/tmp/ms_tmp/"
    LOG "C:/apache/htdocs/tmp/mapserv.log"
  END
  REFERENCE
    STATUS ON
    IMAGE "./data/reference/outlinesm.jpg"
    SIZE 100 100 
    EXTENT 0 0 700000 1.3e+006 
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
    MINBOXSIZE 10
    MAXBOXSIZE 100
    MARKER "star"
    MARKERSIZE 8
  END
  QUERYMAP
    STATUS OFF
    SIZE 100 100 
    COLOR 255 0 0
    STYLE HILITE
  END
  
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    POSITION LL
    KEYSIZE 20 10 
    KEYSPACING 5 5 
    TEMPLATE "ttt"
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      OFFSET 0 0 
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  SCALEBAR
    STATUS ON
    COLOR 0 0 0
    OUTLINECOLOR 0 0 0
    IMAGECOLOR 255 255 255
    TRANSPARENT FALSE
    UNITS KILOMETERS
    INTERVALS 7
    SIZE 250 4 
    STYLE 0
    POSITION LL
    LABEL
      TYPE BITMAP
      SIZE TINY
      POSITION CC
      OFFSET 0 0 
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END
	LAYER
    NAME "050K Rasters NY"
    STATUS ON
    TILEINDEX "ny050.shp"
    TILEITEM "Location"
    GROUP "050K rasters"
		TYPE RASTER
  END
		  LAYER
    NAME "050K Rasters SD"
    STATUS ON
    TILEINDEX "sd050.shp"
    TILEITEM "Location"
    GROUP "050K rasters"
		TYPE RASTER
  END

	  LAYER
    NAME "CALevents"
    GROUP "CAU/CAL Sites"
    STATUS ON
    DATA "event"
    TYPE POINT
    UNITS METERS
    SIZEUNITS PIXELS
    LABELITEM "SiteCode"
    LABELMAXSCALE 200000
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    DEBUG ON
    METADATA
      "WMS_SRS"    "EPSG:BNG"
      "WMS_TITLE"    "CALevents"
      "WMS_GROUP_TITLE"    "Sites"
    END
    PROJECTION
      "init=epsg:27700" 
    END
    CLASS
      NAME "CALevents"
      TEMPLATE "./templates/calsites.html"
      LABEL
        TYPE BITMAP
        FONT "arial_black"
        SIZE SMALL
        POSITION CL
        OFFSET 0 0 
        BUFFER 4
        MINDISTANCE 300
        MINFEATURESIZE -1
        COLOR 0 0 0
        PARTIALS TRUE
        FORCE FALSE
      END
      STYLE
        SYMBOL 7
        COLOR 0 0 192
        OUTLINECOLOR 0 0 0
        SIZE 7
        MINSIZE 1
        MAXSIZE 100
      END
    END
  END
  LAYER
    NAME "OANSites"
    GROUP "LUAU/OA North Sites"
    STATUS ON
    TYPE POINT
    CONNECTIONTYPE OGR
    CONNECTION "virtual.ovf"
    UNITS METERS
    SIZEUNITS PIXELS
    LABELITEM "ProjectSiteCode"
    LABELMAXSCALE 200000
    TOLERANCE 10
    TOLERANCEUNITS PIXELS
    DEBUG ON
    METADATA
      "WMS_TITLE"    "OA North Sites"
      "WMS_GROUP_TITLE"    "Sites"
    END
    PROJECTION
      "init=epsg:27700" 
    END
    CLASS
      NAME "OANSites"
      TEMPLATE "./templates/sites.html"
      LABEL
        TYPE BITMAP
        SIZE SMALL
        POSITION CL
        OFFSET 0 0 
        BUFFER 4
        MINDISTANCE 300
        MINFEATURESIZE -1
        COLOR 0 0 0
        PARTIALS TRUE
        FORCE FALSE
      END
      STYLE
        SYMBOL 7
        COLOR 155 0 255
        OUTLINECOLOR 0 0 0
        SIZE 7
        MINSIZE 1
        MAXSIZE 100
      END
    END
  END
END


More information about the Maplab-users mailing list