Dear all,
Since I migrated from 3.0.199 to 3.0.307 I'm no longer able to move dynamic feature & center on a feature in combinaison with projection.
I'm using the same projection for a ShapeFileFeatureLayer and a InMemoryFeatureLayer:
p = new Proj4Projection(Proj4Projection.GetEpsgParametersString (4326), Proj4Projection.GetGoogleMapParametersString());
Then I add some features on the InMemoryFeatureLayer with WGS84 coord; features are correctly shown on the map.
The issue is when I try to center on that feature; the map is in fact centered to (0,0); this worked with 3.0.199; here is my code:
feature = m_DynamicLayer.InternalFeatures[featureKey];
MainMap.CenterAt(feature);
MainMap.Refresh();
Also, when I try to move that feature to another WGS84 coord, the feature is moved to (0,0); again this worked in 3.0.199 and work if I do not use projection:
DynamicOverlay.Lock.EnterWriteLock();
PointShape pointShape = m_DynamicLayer.InternalFeatures[featureKey].GetShape() as PointShape;
pointShape.X = x;
pointShape.Y = y;
pointShape.Id = featureKey;
m_DynamicLayer.Open();
m_DynamicLayer.EditTools.BeginTransaction();
m_DynamicLayer.EditTools.Update(pointShape);
m_DynamicLayer.EditTools.CommitTransaction();
m_DynamicLayer.Close();
DynamicOverlay.Lock.ExitWriteLock();
MainMap.Refresh();
Any help is more than welcome.