File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,34 @@ model.Axes.Add(new LatitudeWebMercatorAxis
131131});
132132```
133133
134+ #### Label formating
135+ ##### Default
136+ e.g. 48.86°N, 02.35°E
137+
138+ ##### Degrees Minutes Seconds (DMS) Coordinates System
139+ e.g. 38°53′23″N, 77°00′32″W
140+ ``` csharp
141+ model .Axes .Add (new LongitudeAxis
142+ {
143+ Position = AxisPosition .Bottom ,
144+ Minimum = - 0 . 24 ,
145+ Maximum = 0 . 04 ,
146+ Title = " Longitude" ,
147+ LabelFormatter = (decDegrees ) => CartographyHelper .DecimalDegreesToDegreesMinutesSeconds (decDegrees , false , 3 )
148+ });
149+
150+ model .Axes .Add (new LatitudeWebMercatorAxis
151+ {
152+ Position = AxisPosition .Left ,
153+ Minimum = 51 . 42 ,
154+ Maximum = 51 . 62 ,
155+ Title = " Latitude" ,
156+ LabelFormatter = (decDegrees ) => CartographyHelper .DecimalDegreesToDegreesMinutesSeconds (decDegrees , true , 3 )
157+ });
158+ ```
159+ ##### Decimal Degrees (DD) Coordinates System
160+ e.g. 38.8897°, -77.0089° or 38.8897,-77.0089
161+
134162### LinearAxis
135163When using the basic Oxyplot ` LinearAxis ` , the map tiles are not rendered as true squares.
136164![ example-openstreetmap-linear-axis] ( https://user-images.githubusercontent.com/38405645/184510852-5003c17e-4b7d-4de7-a248-1855a3fcb014.png )
You can’t perform that action at this time.
0 commit comments