This map is not using OpenLayers, just MapServer with a mapfile.

There is a layer that displays both the point and the label.

Looking through the documentation, I'm not entirely sure what the best way is.

Edit: Ideally (not even sure if this is possible), I would like to disable the label for the first two zoom levels but display the associated point. Is this even possible if they are tied together as one layer?

Edit2: Looks like LABELMAXSCALEDENOM is what I'm looking for, but how to configure correctly? I know it's


but how do you exactly know the scale of your map?


  SIZE 128 768
    EXTENT -180 -90 180 90

I tried LABELMAXSCALEDENOM equal to some different integers. Didn't notice any difference: the labels were just gone completely, no matter what the zoom.

Any input is appreciated.

2 Answers 2


This works for what I want (disable labels for first two zoom levels but leave points), but I still don't really understand the math aspect behind it, given I know the size and extent. Was just randomly trying numbers and 500000 seemed to work. If anyone could offer some insight on SCALEDENOM in relation to SIZE and EXTENT, it would be appreciated.

  • 1
    Randomly trying numbers is the method I have found to be best, in addition to copy the values from existing mapfiles. If you are really interested, this mapserver-users thread deals with WMS scale calculations mail-archive.com/[email protected]/msg14413.html
    – user30184
    May 20, 2014 at 10:38

Scale calculations are difficult when you operate with longitude-latitude (decimal degrees) for the MAP. If you look at a map of the world in a longitude-latitude "projection", the scale in the east-west direction will become larger as you get closer to the poles.

  • 1
    Very good point, one which I did not realize when I asked this question :)
    – Nubtacular
    Dec 10, 2013 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.