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

Using this plugin with n polyline-layers in a layergroup #3

Closed
Lukas-bw opened this issue Mar 7, 2013 · 5 comments · Fixed by #4
Closed

Using this plugin with n polyline-layers in a layergroup #3

Lukas-bw opened this issue Mar 7, 2013 · 5 comments · Fixed by #4

Comments

@Lukas-bw
Copy link

Lukas-bw commented Mar 7, 2013

Hi,

I have several polylines that I add to a specific layergroup. Is there any way to use the plugin like this? If I register the events on the polylines, the mouseover does not trigger and if i try it with on.click I am getting exceptions like "rootpath not found" or Object [object global] has no method 'setText'

edit: I have seen that the mouseover is a canvas problem, canvas does not support mouse over/out events.

edit2: I have a jsfiddle here, that does NOT use a layergroup but a click event, and it tells me "Uncaught TypeError: Cannot call method 'setAttribute' of undefined "
http://jsfiddle.net/dP9aG/25/

@leplatrem
Copy link
Collaborator

There is indeed a dependency on SVG paths.

Currently the plugin will not work if you use Canvas, but, there could be an alternative implementation for Canvas : http://www.html5canvastutorials.com/labs/html5-canvas-text-along-arc-path/

@Lukas-bw
Copy link
Author

Lukas-bw commented Mar 7, 2013

Hi, and thank you for your fast reply. Do you have the intention to add canvas support in the future?

@leplatrem
Copy link
Collaborator

Since it's technically affordable, it would be relevant to do it :)

@lovell
Copy link
Contributor

lovell commented Mar 11, 2013

@leplatrem
Copy link
Collaborator

@lovell you could open PR with those lines :)

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 a pull request may close this issue.

3 participants