stadtnavi / digitransit-ui

Digitransit UI Clone, especially for the city of Herrenberg ("stadtnavi.de")
https://stadtnavi.de/
Other
13 stars 14 forks source link

Additional POI layers #12

Closed hbruch closed 4 years ago

hbruch commented 5 years ago

The following POI layers (extracted from OSM) should be added:

Taxi stand

Bicycle infrastructure

Parkings

Charging Infrastructure:

Bike/Carsharing locations:

Still to be defined:

Digitransit documentation describes how to add GeoJSON layers.

Additional info:

Beck-berry commented 4 years ago

The GeoJson layer should be added in the config.hb.js file.

Beck-berry commented 4 years ago

To run DT-UI in HB config: CONFIG=hb yarn run dev

I made no modifications on the HB version of Digitransit however (1) I constantly get SyntaxError in JSON and (2) sometimes Source map error. (sockjs.js.map) https://developer.mozilla.org/en-US/docs/Tools/Debugger/Source_map_errors#Invalid_source_map

hb_json_syntax_2019-09-19_11-33-52

I have no idea what causes the error.

This solution might have something to do with this? Or in connection with the graphql?

Beck-berry commented 4 years ago

This is quite awkward, but this morning I ran the UI in a private browser window and it worked perfectly. Something must be wrong with Firefox or the plugins I have installed... // I got a brand new error and googled it.

Beck-berry commented 4 years ago

GeoJson docs

Beck-berry commented 4 years ago

All mentioned layers are added and merged to the master branch.

Beck-berry commented 4 years ago

When feature is a Point:

When feature is a MultiPoint:

Beck-berry commented 4 years ago

@hbruch Do we have to be able to set these coordinates (for example a bike shop) as origin or destination?