[mapserver-users] Labels vanish in grid layers

Ahmet Temiz ahmettemiz88 at gmail.com
Sat Sep 17 22:30:56 PDT 2016


Hi,
(Maybe hard to explain the problem)
I am using GRID layer and retrieve this layer using WMS and constructed on
OL3.
Grids are displayed normally. But, Labels vanish. when I pan the map labels
appear instantly and disappear again at the edges of the map.

Is it possible to display the labels at the center of  maps?

Do you have any idea?

here is the relevant part of the map file:


LAYER
  NAME "grid3857"
  METADATA
    "DESCRIPTION" "Grid"
  END
  TYPE LINE
  STATUS ON
  CLASS
    NAME "Graticule"
    COLOR 0 0 0
    LABEL
      COLOR  255 0 0
      FONT "FreeSans"
      TYPE truetype
      SIZE 8
      POSITION AUTO
      PARTIALS FALSE
      BUFFER 2
      OUTLINECOLOR 255 255 255
    END
  END
  PROJECTION
    "init=epsg:3857"
  END
  GRID
    LABELFORMAT '%.0fm'
    MININTERVAL 200000
  END
END # Layer

Do you have any idea?

regards



-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160918/4ef477eb/attachment.html>


More information about the mapserver-users mailing list