eckhchri / pcars-ds-liveview

Provides a html page for project cars dedicated server and display a map of the current race.
14 stars 1 forks source link

implement switch between Google-Maps and OpenStreetMap and Bing Maps #13

Open eckhchri opened 9 years ago

eckhchri commented 9 years ago

In some cases the satellite pictures of a track is not up to date on all map services.

Example1: Snetterton, Norfolk 52.489712,0.941960

Example2: Silverstone https://www.google.de/maps/place/Silverstone+Circuit,+Towcester,+Northamptonshire+NN12+8TN,+Gro%C3%9Fbritannien+und+Nordirland/@52.0694824,-1.0145056,2202m/data=!3m1!1e3!4m2!3m1!1s0x48771c5823926c25:0x1142afb591c324a6!6m1!1e1 http://www.bing.com/maps/?v=2&cp=52.068342~-1.021388&lvl=16&sty=h&form=LMLTCC

possible solution: 1.) implement an Trigger within RefPoint List to decide which kind of map to use Google/OpenStreetmap 2.) Use Overlay Maps as for fictional tracks 3.) Example: http://geojson.io uses such a needed switch 4.) Usage of a generic wrapper class to isolate different API calls


Bing: http://openlayers.org/en/master/examples/bing-maps.html http://openlayers.org/en/latest/examples/feature-move-animation.html OpenStreetMap: http://ewoken.github.io/Leaflet.MovingMarker/ http://bl.ocks.org/ramiroaznar/44f8de5ab7db081cae19db4e67bf6d74 Google-Map: