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

More examples #17

Open
xEviL opened this issue Oct 3, 2015 · 2 comments
Open

More examples #17

xEviL opened this issue Oct 3, 2015 · 2 comments

Comments

@xEviL
Copy link
Contributor

xEviL commented Oct 3, 2015

Need more examples to show what can be done with the plugin.

Please consider creating your own examples and publishing them using Github Gists: https://gist.github.com/ and http://bl.ocks.org/

@tdaubs
Copy link

tdaubs commented Jan 17, 2016

It would be great to see an example map where points don't increase or decrease in size based on zoom level. In other words, points always stay the same size.

In addition, it would be good to see an example with a infoWindow attached to the marker.

@xEviL
Copy link
Contributor Author

xEviL commented Jan 18, 2016

@tdaubs in the second example: http://bl.ocks.org/xEviL/0c4f628645c6c21c8b3a the stroke width is kept 1px regardless of the zoom, using:

upd.attr('stroke-width', 1 / proj.scale);

You can use similar technique to keep whatever you're drawing in sync with zoom.

Regarding the infoWindow - we don't provide this functionality in the plugin. You can either draw svg text or html (using foreignObject in svg) or use Leaflet's api for 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

2 participants