Skip to content

Use a Model S --map marker, facing the car's direction#47

Open
johan wants to merge 1 commit intohjespers:masterfrom
johan:patch-1
Open

Use a Model S --map marker, facing the car's direction#47
johan wants to merge 1 commit intohjespers:masterfrom
johan:patch-1

Conversation

@johan
Copy link
Copy Markdown

@johan johan commented Sep 25, 2013

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.

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.
@hjespers
Copy link
Copy Markdown
Owner

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.

@johan
Copy link
Copy Markdown
Author

johan commented Sep 27, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants