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

fictional tracks: how displaying on google maps #7

Open eckhchri opened 9 years ago

eckhchri commented 9 years ago

1.) implement value within refPoints class like show_on_map: true/false 2.) use fictional RefPoint for each fictional track somewhere over the world 3.) use an Overlay for google map, with fictional track picture (not sure if possible) - https://developers.google.com/maps/documentation/javascript/examples/maptype-image-overlay 4.) https://github.com/johan/world.geo.json/blob/master/countries/ALB.geo.json (based on https://www.dashingd3js.com/svg-paths-and-d3js)

viper4gh commented 7 years ago

https://www.dashingd3js.com/lessons/d3-geo-path https://github.com/johan/world.geo.json http://bl.ocks.org/johan/1431429

viper4gh commented 7 years ago

test geo.json file with http://geojson.io

eckhchri commented 7 years ago

google.maps + geojson: https://developers.google.com/maps/documentation/javascript/examples/polyline-simple?hl=de http://stackoverflow.com/questions/19665063/google-maps-live-drawing-and-updating-a-polyline

http://stackoverflow.com/questions/18854851/google-maps-with-d3-geo-path

eckhchri commented 6 years ago

Implementation: Put a track specific GEOJSon File into the project folder in the following project path: ./data/trackmaps/ with format: trackmap[trackid].json

It will be loaded automatically if file exists.