Hi,
In my application I am using multiple base maps like Normal map(with countries.shp shape file), Google and Openstreet
For matching all maps to be same i am using Google Map Projection for all by using following code…
Proj4Projection _proj = new Proj4Projection();
_proj.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
_proj.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString(); // (or)Proj4Projection.GetEpsgParametersString(3857);
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(_sMapDataPath + “/MapData/MasterShapeFile/Countries02.shp”, _sMapDataPath + “/MapData/MasterShapeFile/Countries02.idx”, GeoFileReadWriteMode.Read, System.Text.Encoding.Default);
worldLayer.FeatureSource.Projection = _proj;
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = new AreaStyle(new GeoPen(GeoColor.FromArgb(Convert.ToInt32(_LandLineColor.Split(’,’)[0]), Convert.ToInt32(_LandLineColor.Split(’,’)[1]), Convert.ToInt32(_LandLineColor.Split(’,’)[2]), Convert.ToInt32(_LandLineColor.Split(’,’)[3])), 1F), new GeoSolidBrush(GeoColor.FromArgb(Convert.ToInt32(_LandColor.Split(’,’)[0]), Convert.ToInt32(_LandColor.Split(’,’)[1]), Convert.ToInt32(_LandColor.Split(’,’)[2]), Convert.ToInt32(_LandColor.Split(’,’)[3]))));
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay worldOverlay = (LayerOverlay)wfMap.CustomOverlays[“World Map”];
worldOverlay.Layers.Add(“worldLayer”, worldLayer);
But I am getting my normal map and other layers also ZIGZAG. Please look at in following pic.
I thought that this is an issue with Google map Projection… Please help me how can I resolve this…
Thanks,
Ashok