Back to Devexpress

GeoMapCoordinateSystem.CircularScrollingMode Property

wpf-devexpress-dot-xpf-dot-map-dot-geomapcoordinatesystem-1e64a496.md

latest2.6 KB
Original Source

GeoMapCoordinateSystem.CircularScrollingMode Property

Gets or sets a value that indicates which map items are available for circular scrolling. This is a dependency property.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public CircularScrollingMode CircularScrollingMode { get; set; }
vb
Public Property CircularScrollingMode As CircularScrollingMode

Property Value

TypeDescription
CircularScrollingMode

The value that indicates which map items are available for circular scrolling.

|

Available values:

NameDescription
None

Nothing should be circularly scrolled.

| | TilesAndVectorItems |

Tiles and vector items should be circularly scrolled.

|

Remarks

Note that, a map shape should fulfill the following condition to cross the 180th meridian: one or several points’ longitudes should exceed the 180 (-180) limit:

xml
<dxm:MapItemStorage>
    <dxm:MapItemStorage.Items>
        <dxm:MapPolygon>
            <dxm:MapPolygon.Points>
                <dxm:GeoPoint Latitude="-10" Longitude="-170"/>
                <dxm:GeoPoint Latitude="-10" Longitude="170"/>
                <dxm:GeoPoint Latitude="10" Longitude="170"/>
                <dxm:GeoPoint Latitude="10" Longitude="-170"/>
            </dxm:MapPolygon.Points>
        </dxm:MapPolygon>
        <dxm:MapPolygon Fill="Orange">
            <dxm:MapPolygon.Points>
                <dxm:GeoPoint Latitude="30" Longitude="170"/>
                <dxm:GeoPoint Latitude="30" Longitude="190"/>
                <dxm:GeoPoint Latitude="40" Longitude="190"/>
                <dxm:GeoPoint Latitude="40" Longitude="170"/>
            </dxm:MapPolygon.Points>
        </dxm:MapPolygon>
    </dxm:MapItemStorage.Items>
</dxm:MapItemStorage>

The code above produces the following image:

See Also

GeoMapCoordinateSystem Class

GeoMapCoordinateSystem Members

DevExpress.Xpf.Map Namespace