New answers tagged


try this: var provider = vectorLayer.DataSource; var geometry = p.GetGeometryByID(fid); var location = geometry.Centroid.Coordinate; //map.Center = location; mapBox1.Map.Center = location; mapBox1.Refresh();


I am not familiar with sharpmap, but from the available documentation I guess you could do as follows: Get the envelope of the point call map.ZoomToBox(Envelope) with the envelope as a parameter. Probably (1) can be achieved by calling something like new Envelope(-9.205626, -9.123736, 38.690993, 38.740837) with the point coordinates as parameters. Or ...

Top 50 recent answers are included