ankane / mapkick.js

Create beautiful, interactive maps with one line of JavaScript
https://chartkick.com/mapkick-js
MIT License
399 stars 12 forks source link

Using own Icons #1

Closed miku86 closed 4 years ago

miku86 commented 6 years ago

Hello Andrew,

thanks for your great effort, mapkick runs really smoothly.

I tried to use my own icons by editing my js file: new Mapkick.Map('map', data, { icon: '<my-icon>' }); but that didn't work.

So I edited mapkick.js "icon-image": "<my-icon>", in multiple ways, but only Maki Icons are working.

So I thoroughly browsed through mapbox-gl.js to find 26 places where icon-image is used in (for me) cryptic ways.

I would love to hear some hint or advice how to solve this issue.

Thanks and have a nice day Michael

ankane commented 6 years ago

Hey @miku86, custom icons aren't supported yet, but can probably be added pretty easily if you want to contribute. Here's how the default marker is loaded: https://github.com/ankane/mapkick.js/blob/fa0602797a346fa612f36f27d6e77a3e186505db/mapkick.js#L312

ankane commented 4 years ago

Cleaning up issues. For future readers, still happy to review a PR.