Hi Neil,
For question 1: I think your point and line should be in the same layer, and you just set the DefaultLineStyle and DefaultPointStyle. And the point feature should be added before the line feature in your data source. So the solution is don’t set the default style, but add line style at first into custom styles and then add the point style into it like this:
LineStyle line1 = new LineStyle(new GeoPen(GeoColors.DarkBlue, 10));
PointStyle point1 = PointStyles.City1;
InMemoryFeatureLayer layer = new InMemoryFeatureLayer();
//layer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = style1;
//layer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = point1;
layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(line1);
layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(point1);
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LineShape line = new LineShape();
line.Vertices.Add(new Vertex(15, 10));
line.Vertices.Add(new Vertex(21, 16));
PointShape point = new PointShape(21, 16);
layer.InternalFeatures.Add(new Feature(point));
layer.InternalFeatures.Add(new Feature(line));
layerOverlay.Layers.Add(layer);
For question 2:
Please set the projection to layer.FeatureSource.Projection, you don’t need set projection to each feature, assign it to whole layer, it will works.
Regards,
Ethan