10-23-2019 09:21 PM
Maybe an easy question but I am unable to find a way.
How can I draw a small rectangle on the MapView using GeoMedia Objects and fill it with a certain color?
Does anybody have any code example they could provide in VB.NET?
Solved! Go to Solution.
10-23-2019 11:36 PM
there is no way to draw directly to the MapView. The data must exist in a database. However, you can use the CustomDataPipe object to create an in-memory recordset, populate it with data and then create a symbology and legend entry for that data. You can make your legend entry hidden, so that it is not visible to the end user, yet is still must be there.
To draw a rectangle, you can either create a polygon geometry (I would discourage you to use RectangleGeometry object) and create an are symbology, or you can create a point geometry and use an svg symbol for it.
Attached is a small C# example of CustomDataPipe.
10-24-2019 12:47 PM - edited 10-24-2019 12:48 PM
You can do this with a GeometryDigitizeService too. Add a Style object and the rectangel vertexes to the service
I think, it's easier than with a CustomDataPipe object. But works both ways.