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

Add custom markers instead of circle markers #10

Open
geomatupen opened this issue May 31, 2020 · 2 comments
Open

Add custom markers instead of circle markers #10

geomatupen opened this issue May 31, 2020 · 2 comments
Labels

Comments

@geomatupen
Copy link

I was wondering how to add marker icons ie. png, htmlIcon etc. Is the feature under development.

@jwasilgeo
Copy link
Collaborator

jwasilgeo commented Jun 17, 2020

Hi @geomatupen this layer doesn't support that right now. We use canvas path drawing commands to manually draw the circles at the origin/destination points. You could set symbol colors that effectively hide the canvas circles that this layer always draws, and then re-add your own markers at those point locations in another layer to possibly achieve the desired look and feel.

@geomatupen
Copy link
Author

I was already trying the exact option you mentioned. however couldn't achieve the canvas ordering using layer z-index. I was trying to load circles with zero opacity above the icon marker but canvas ordering didn't work as expected.

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

No branches or pull requests

2 participants