<div dir="ltr">Hello, I've been struggling on this issue and it seems SIZEUNITS is not
being recognized correctly without using WMS (which, really should not
be a factor. It should be simpler not using WMS).
<br><br>SIZEUNITS units default is pixels. I am trying to use miles. In my html file I have
<br><br>var cust = new OpenLayers.Layer.MapServer("POIs", "<a href="http://192.168.2.164/cgi-bin/mapserv.exe" target="_top" rel="nofollow">http://192.168.2.164/cgi-bin/mapserv.exe</a>", {map: "/data2/html/html2/david_POIs4.map", layers: ['POIs']}, {singleTile: true} );
<br><br>My Mapfile layer (POIs) consists of this:
<br><br> LAYER
<br> NAME POIs
<br> DEBUG 5
<br> TYPE POINT
<br> CONNECTIONTYPE OGR
<br> CONNECTION 'PointsOfInterest_Latest.db'
<br> DATA 'POIs'
<br> STATUS ON
<br> SIZEUNITS miles
<br> LABELITEM "name"
<br> CLASS
<br> STYLE
<br> SYMBOL 'Airport'
<br> COLOR 8 29 118
<br> WIDTH 2
<br> SIZE 200
<br> END
<br> #STYLE
<br> # SYMBOL 'City'
<br> # COLOR 8 29 118
<br> # SIZE 6
<br> #END
<br> LABEL
<br> FONT "andalewt"
<br> TYPE truetype
<br> ENCODING "UTF-8"
<br> MINSIZE 9
<br> MAXSIZE 9
<br> POSITION AUTO
<br> PARTIALS FALSE
<br> COLOR 8 29 118
<br> OFFSET 1 1
<br> PRIORITY 10
<br> BUFFER 0
<br> END # LABEL
<br> END
<br><br> PROJECTION
<br> "proj=latlong"
<br> "ellps=WGS84"
<br> "datum=WGS84"
<br> END
<br> END
<br><br>I have the SIZE set to 200 so the radius will be 100 miles. As
you can see I commented out the second symbol commented out for now:
just trying to get something working.
<br><br>It also seems that whether the SIZE value is 200 or 10 (any
number, really), the circles are still huge: more or less taking up the
whole map. Whether the value is 200 or 10 miles (and working correctly),
these circles should not be very big on the farthest zoom level out in a
standard OpenLayers map.
<br><br>I posted two pictures here to give you an idea of what I'm talking about:
<br><br><a href="http://imgur.com/a/DhK3Y" target="_top" rel="nofollow">http://imgur.com/a/DhK3Y</a><br><br>The first picture is correct: the data is being served as a WMS layer.
<br><br>The second picture is incorrect: the data is being served as a MapServer layer.
<br><br>I do not understand how removing WMS and instead using a MapServer layer for OL is generating behavior such as this.
<br><br>Any input on this issue is appreciated.
</div>