OsmSharp / ui

The UI components.
http://osmsharp.com/
GNU General Public License v2.0
138 stars 90 forks source link

Samples with Vector files not working #176

Closed bonnojold closed 9 years ago

bonnojold commented 10 years ago

While trying to get the sample projects to work I'm stuck at the project with vectors. The application crashes with a nullpointer at the following part. I've checked and can confirm that the variable sceneStream actually loaded the file. This issue occurs in both iOS and Android and I can't figure out a solution or work-around to load the default.map.

var sceneStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(@"iOS.Vectors.default.map");

map.AddLayer(new LayerScene(Scene2D.Deserialize(sceneStream, true))); <-- Nullpointer