Hi, I feel like I should be able to figure this out, but I've been playing with it for a while and just feel like I'm going in circles.
I created a test application that is really simple to test with.
On my map, I'm using a google overlay as the base and then I have only one other overlay with only one layer on it. The data from the layer is coming from a table in MsSQL2008. The data in the database is using the SRID of 4326. After the map has loaded, it says that there are ~9000 features on the layer, which is the amount of items in the database. In the database table all of the items are points. I'll copy in my code below, but I've tried swapping the internal and external sides of the projection thinking maybe I was confused. I'm sure you'll look at this and just immediately be able to point out my mistake.
If I query the database using the extent I've set (converted to the external projection), I come back with 11 rows from the database, so I think I should be able to see the entries when the map first loads.
Do you need to see anything else?
MsSql2008FeatureLayer layer = new MsSql2008FeatureLayer(connString, tableName, idColumn); Proj4Projection projection = new Proj4Projection(); projection.ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326); projection.InternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString(); layer.FeatureSource.Projection = projection; //layer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = new AreaStyle(new GeoPen(GeoColor.SimpleColors.DarkOrange)); //layer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.MajorRoad1; layer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.City1(textColumn); layer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.City1; layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; //layer.Srid = 4326;
Kimberly