feat: basic navigation with bugs

This commit is contained in:
2024-04-21 08:24:50 +02:00
parent e653010458
commit 3de71e2a5a
13 changed files with 1391 additions and 92 deletions

View File

@ -36,7 +36,6 @@ class Feature with _$Feature {
points: pts,
borderColor: Colors.black26,
borderStrokeWidth: 2.0,
hitValue: 'test${pts.length}',
);
final polygon = geometry as GeoJSONPolygon;
// print(polygon.geometry!.geoSeries[0].geoPoints);

View File

@ -40,7 +40,7 @@ Result<Feature> parseFeature(
final building = yaml['building'] as String?;
print("yaml: $yaml");
// print("yaml: $yaml");
var raw_type = yaml['type'] as String?;
if (raw_type == null && layer?.toLowerCase() == 'buildings') {
@ -123,7 +123,7 @@ Result<List<String>> stringifyList(List<dynamic> tramLines) {
Result<List<T>> getYamlList<T>(YamlMap yaml, String key) {
try {
print('yaml is ${yaml[key]}');
// print('yaml is ${yaml[key]}');
final val = (yaml[key] as YamlList?);
if (val == null) {
return bail("Key $key is missing in yaml");