ebrelsford / Leaflet.loading

A simple loading control for Leaflet
MIT License
143 stars 49 forks source link

Add default loading.gif #21

Closed dmolineus closed 9 years ago

dmolineus commented 9 years ago

It would be nice if a default loading gif is provided. To support spin.js as well, you could use the :empty selector:

.leaflet-control-loading:empty {
    background-image: url('loading.gif');
}
ebrelsford commented 9 years ago

I'm open to it. Have a freely-licensed gif we could use? That's all that has stopped me in the past.

dmolineus commented 9 years ago

Great! You can get one from here: http://www.ajaxload.info/ for free.

ebrelsford commented 9 years ago

Ah didn't realize the generated gifs were under the wtfpl. Great. I will plan on getting to this in a bit but feel free to submit a PR in the meantime.

ebrelsford commented 9 years ago

@dmolineus de68a694c should do it, give it a shot?

dmolineus commented 9 years ago

Thanks, is working fine!