Exemplo n.º 1
0
    public void GenerateOSMObjects(MapGenerator mapGenerator, string mapName)
    {
        mapData      = mapGenerator.mapData;
        trailDisplay = this.GetComponent <TrailDisplay> ();
        poiDisplay   = this.GetComponent <POIDisplay> ();
        iconHandler  = this.GetComponent <IconHandler>();
        areaDisplay  = this.GetComponent <AreaDisplay>();
        OSMData osmData = DataImporter.GetOSMData(mapName);

        trailDisplay.mapData = mapData;
        poiDisplay.mapData   = mapData;

        iconHandler.generateIconDictionary();
        GenerateTrails(osmData);
        GeneratePoiNodes(osmData);
        GenerateAreas(osmData);
        GenerateRivers(osmData);
        areaDisplay.displayAreas();
    }