Exemplo n.º 1
0
        private void ConfigureMapView()
        {
            MapView.CopyrightLogoPosition = NMALayoutPosition.BottomLeft;

            NMAGeoCoordinates geoCoordCenter = new NMAGeoCoordinates(50.9605737, 7.7703383);

            MapView.SetGeoCenter(geoCoordCenter, NMAMapAnimation.None);

            MapView.ZoomLevel           = 5;
            MapView.WeakGestureDelegate = this;

            NMAClusterLayer cl = new NMAClusterLayer();

            cl.AddMarker(new VehicleMapMarker(new NMAGeoCoordinates(50.9605738, 7.7703383), "Testvehicle 1"));
            cl.AddMarker(new VehicleMapMarker(new NMAGeoCoordinates(49.8022486, 8.6021228), "Testvehicle 2"));
            cl.AddMarker(new VehicleMapMarker(new NMAGeoCoordinates(48.712405, 9.3061532), "Testvehicle 3"));

            MapView.AddClusterLayer(cl);
        }