I'm using the GIS.NET 3.0 to provide GIS functionality to a desktop app. I have all of a sudden started experiencing an "Object reference not set to an instance of an object" on a call to GeoFramework.Shapes.Layer.Add(GeographicObject item). The
below code simply is setting up the first object on the map. The item is a MoveableItem that I am feeding different position data to. Not sure if the image is not getting set or not. Not sure how to verify using CV.
//Position is needed by the MyVehicle constructor
//It is set to a point outside of current map extent
//to prevent it from showing before marker size and
//marker label style are specified.
Position pos =
MyVehicle v =
//size of a vehicle 10 meters
//v.Radius = GeoFramework.Distance.FromMeters(10.0);
if (v !=
//run animation asynchronously