Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johan
Copy link

@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
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
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