Any update on this? I'm taking a string of GeoJson that I validated at GeoJsonLint.com and trying to add it to a SFMap with this:
string sGeoJson = BuildGeoJson(lPoints);
ShapeFileLayer shapeFileLayer = new ShapeFileLayer();
MemoryStream memoryStream = new MemoryStream();
StreamWriter streamWriter = new StreamWriter(memoryStream);
streamWriter.Write(sGeoJson);
streamWriter.Flush();
memoryStream.Position = 0;
shapeFileLayer.ReadAsJsonStream(memoryStream);
TheMap.Layers.Add(shapeFileLayer);
And I can see no effect. I'm building the GeoJson at runtime, so it's not like I can pre-convert GeoJson to a shapefile.
A secondary question is if, the GeoJson can be loaded and displayed, is styling like either one of these supported?
"style": {
"stroke": "#ff0000",
"stroke-width": "3",
"stroke-opacity": 1,
"marker-size": "medium",
"marker-symbol": 0,
"marker-color": "#ff0000"
},
"properties": {
"prop0": "value0",
"prop1": 0,
"stroke": "#ff0000",
"stroke-width": "3",
"stroke-opacity": 1,
"marker-size": "medium",
"marker-symbol": 0,
"marker-color": "#ff0000"
}