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

Put photos on a leash #22

Open
justinormont opened this issue Apr 11, 2013 · 1 comment
Open

Put photos on a leash #22

justinormont opened this issue Apr 11, 2013 · 1 comment
Assignees

Comments

@justinormont
Copy link
Collaborator

I'm looking to spread out the circle photos on the map. I need a UI element to show the user where the photos are really located.

Can someone put a dot and a line behind each circle photo, and connect the line to dot/circle? Then I'll code up a force directed graph layout algorithm to spread the photos nicely.

Before:
clustered - finished

After:
unclustered - finished

@justinormont
Copy link
Collaborator Author

Here's a start on how one could do it in SVG:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <image x="0" y="0" width="150" height="150" xlink:href="http://farm9.staticflickr.com/8285/7736415366_79bb1888dc_q.jpg"></image>
  <line x1="75" y1="75" x2="250" y2="250" style="stroke: black; stroke-width: 3;"></line>
</svg>

SVG example

Though, we're likely better doing it in CSS. Here's how to make a line in CSS: http://monkeyandcrow.com/blog/drawing_lines_with_css3/

There's also likely ways to do it in the Bing Maps API, which may be the best solution.

@mohamedmansour @jeremybenaim : Want to create this?

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

No branches or pull requests

3 participants