Пример #1
0
    public static OSMData GetOSMData(string mapName)
    {
        CreateDataFrame(mapName);
        MapDataFrame dataFrame = mapDataFrames[mapName];

        if (dataFrame.osmData == null)
        {
            dataFrame.osmData      = OSMDataImporter.ReadOSMData(GetFilePathByName(mapName, PathDataType.trail) + ".xml");
            mapDataFrames[mapName] = dataFrame;
        }
        return(mapDataFrames[mapName].osmData);
    }
Пример #2
0
 public void Setup()
 {
     osmData   = OSMDataImporter.ReadOSMData("Assets/Resources/testData/testTrailData.xml");
     precision = 0.0001F;
 }