Hi
I use
var osmOverlay = new OpenStreetMapOverlay();
androidMap.MapUnit = GeographyUnit.Meter;
androidMap.ZoomLevelSet = new OpenStreetMapsZoomLevelSet();
ManagedProj4Projection proj4 = new ManagedProj4Projection();
proj4.InternalProjectionParametersString = ManagedProj4Projection.GetDecimalDegreesParametersString();
proj4.ExternalProjectionParametersString = ManagedProj4Projection.GetGoogleMapParametersString();
proj4.Open();
androidMap.CurrentExtent = proj4.ConvertToExternalProjection(new RectangleShape(-12, 53, 18, 36)) as RectangleShape;
androidMap.Overlays.Add(osmOverlay);
The current extent is ok, west europe
I try
androidMap.MapUnit = GeographyUnit.Meter;
androidMap.ZoomLevelSet = new OpenStreetMapsZoomLevelSet();
ManagedProj4Projection proj4 = new ManagedProj4Projection();
proj4.InternalProjectionParametersString = ManagedProj4Projection.GetDecimalDegreesParametersString();
proj4.ExternalProjectionParametersString = ManagedProj4Projection.GetGoogleMapParametersString();
proj4.Open();
androidMap.CurrentExtent = proj4.ConvertToExternalProjection(new RectangleShape(-12, 53, 18, 36)) as RectangleShape;
var osmLayer = new OpenStreetMapLayer();
//osmLayer.SendingWebRequest += osmLayer_SendingWebRequest;
layerOverlay.Layers.Add(osmLayer);
layerOverlay.TileType = TileType.MultiTile;
androidMap.Overlays.Add("OSM", layerOverlay);
The extent of the map is in the south austrialia, and display the map is very slow.
I try to use OpenStreetMapLayer for sendingWebRequest event.
Thanks
Regards
laurent M