Thanks for the advice. Here is what I have set up, but it still does not work. The status display of the x,y coordinates is still ridiculously BIG and my points make one star at 0,0 of the map (for about 200 points).
The MainForm routine:
//**************************************************************************************************
public MainForm()
In the setSiteMarkers function to setup the layer.
//**************************************************************************************************
ProjectionInfo wgs = KnownCoordinateSystems.Geographic.World.WGS1984;
this.map1.Projection = wgs;
// The FeatureSet starts with no data; be sure to set it to the point featuretype
this.dbMarkers = new FeatureSet(FeatureType.Point);
this.dbMarkers.Projection = wgs;
// The MapPointLayer controls the drawing of the marker features
this.dbMarkerLayer = new MapPointLayer(this.dbMarkers);
this.dbMarkerLayer.Projection = wgs;
// The Symbolizer controls what the points look like
this.dbMarkerLayer.Symbolizer = new PointSymbolizer(Color.Blue, DotSpatial.Symbology.PointShape.Star, 15);
// A drawing layer draws on top of data layers, but is still georeferenced.
this.map1.MapFrame.DrawingLayers.Add(this.dbMarkerLayer);
//add feature set to map
this.map1.Layers.Add(this.dbMarkerLayer);
this.dbMarkerLayer.LegendText = "Points From Sqlite";
//**************************************************************************************************
In the actual database read routine I set the points like this (after reading the record and storing values in Lat and Lng)
Coordinate coord = new Coordinate(Lng, Lat);
DotSpatial.Topology.Point point = new DotSpatial.Topology.Point(coord);
IFeature feature = this.dbMarkers.AddFeature(point);
The layers for the basemap and points are selectable. Everything is working except the scale of the map does not go to GPS lat/lng (20.00, -120.00)
I'm still missing something.
The MainForm routine:
//**************************************************************************************************
public MainForm()
{
InitializeComponent();
Shell = this;
appManager.LoadExtensions();
setSiteMarkers(); // this is the only code I added
}
//**************************************************************************************************In the setSiteMarkers function to setup the layer.
//**************************************************************************************************
ProjectionInfo wgs = KnownCoordinateSystems.Geographic.World.WGS1984;
this.map1.Projection = wgs;
// The FeatureSet starts with no data; be sure to set it to the point featuretype
this.dbMarkers = new FeatureSet(FeatureType.Point);
this.dbMarkers.Projection = wgs;
// The MapPointLayer controls the drawing of the marker features
this.dbMarkerLayer = new MapPointLayer(this.dbMarkers);
this.dbMarkerLayer.Projection = wgs;
// The Symbolizer controls what the points look like
this.dbMarkerLayer.Symbolizer = new PointSymbolizer(Color.Blue, DotSpatial.Symbology.PointShape.Star, 15);
// A drawing layer draws on top of data layers, but is still georeferenced.
this.map1.MapFrame.DrawingLayers.Add(this.dbMarkerLayer);
//add feature set to map
this.map1.Layers.Add(this.dbMarkerLayer);
this.dbMarkerLayer.LegendText = "Points From Sqlite";
//**************************************************************************************************
In the actual database read routine I set the points like this (after reading the record and storing values in Lat and Lng)
Coordinate coord = new Coordinate(Lng, Lat);
DotSpatial.Topology.Point point = new DotSpatial.Topology.Point(coord);
IFeature feature = this.dbMarkers.AddFeature(point);
The layers for the basemap and points are selectable. Everything is working except the scale of the map does not go to GPS lat/lng (20.00, -120.00)
I'm still missing something.