teslams
teslams copied to clipboard
Use a Model S --map marker, facing the car's direction
Feel free to tuck on &rgb=RRGGBB
and &opacity=0.0…1.0
to the url, and an optional &zoom=N
level if there's nicer ideas than black at opacity 0.8 and the default zoom of 5.
See http://jsfiddle.net/ecmanaut/fvEqr/ for source, if you want to tweak around more or fork the fiddle first.
I definitely wouldn't want to put the external URL into the teslamap.js code but I like the idea of a cool marker with heading indication. I will look at the code and see if I can incorporate it somehow so it all runs on the localhost. Thanks Johan.
http://jsfiddle.net/ecmanaut/CLW4e/ has a cleaned-up version that doesn't use any of the jsfiddly compositioning so you can drop it in a html file anywhere to have it just do the right thing, provided you feed it query arguments to populate its parameters – example looks.
Just like your initial google-map-url mock, jsfiddle is good for proof-of-concepts conveyable by pull request links. Serving it from a local python -m SimpleHTTPServer 8888
static-asset server or minimal express app is better for real-world use.