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

Adding Custom Marker Images #82

Closed
bitbruder opened this issue Mar 30, 2022 · 2 comments
Closed

Adding Custom Marker Images #82

bitbruder opened this issue Mar 30, 2022 · 2 comments

Comments

@bitbruder
Copy link
Contributor

Hey @themustafaomar !

First Off: Thank you very much for porting the original project to this vanilla based one. Awesome work!

I just wanted to add some custom marker styles like I was able in jvectormap

Example: https://jvectormap.com/examples/marker-icons/

Is this possible with jsvectormap?

Im not sure if this line would make something like this possible:

this._isImage = !!style.initial.image

Thanks for creating this awesome version!

@bitbruder
Copy link
Contributor Author

Ha, found the answer myself. You used it in the "advanced" example.

https://github.com/themustafaomar/jsvectormap/blob/master/samples/advanced.html#L70

@themustafaomar
Copy link
Owner

Sorry for the late response, I think you found the solution yourself, good for you! 🎉

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

No branches or pull requests

2 participants