ebrelsford / Leaflet.loading

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

put custom spinner location #31

Closed lksv closed 7 years ago

lksv commented 8 years ago

First, thanks for a perfect plugin.

I would like to put loading spinner (in my case spinjs) to custom position. E.g. make it really big in the center of the map.

Is it somehow possible through {separate: true} options and custom css? I cannot find a way:(

The only idea what I have is to change code:

Is it reasonable solution or am I something overlooking missing?

ebrelsford commented 8 years ago

You should definitely be able to do this with CSS and JavaScript without changing the plugin. Here's an example that will need some tweaking, but it does this: