LeafletSlider icon indicating copy to clipboard operation
LeafletSlider copied to clipboard

Not working with Canvas Layer

Open jfaraklit opened this issue 7 years ago • 5 comments

How can this be used with markers inside a canvas?

jfaraklit avatar Jan 08 '18 20:01 jfaraklit

Which canvas layer are you using? What's the actual problem? Do you have a live demo?

dwilhelm89 avatar Jan 09 '18 18:01 dwilhelm89

I don't have a demo but this is how I do it. Looping on geojson features so for each feature I add:

loop start...
var myRenderer = L.canvas({ padding: 0.5 });
var circleMarker = L.circleMarker(latLng, {
    renderer: myRenderer,
    color: '#3388ff'
}).addTo(map);
end of loop...

Now I want to use all these markers which are inside canvas to be used with your slider.

jfaraklit avatar Jan 09 '18 18:01 jfaraklit

Hi I have this issue too, same code as above to render a canvas from multiple points, but no slider shown...

EParisot avatar Nov 25 '20 02:11 EParisot

@EParisot can you please create demo on jsfiddle.net or so

Falke-Design avatar Nov 25 '20 05:11 Falke-Design

Hi ! thank for your fast reply ! I finaly managed to make it work (a bit shamed but did not load jqueryUI's CSS...), it have nothing to do with the renderer or canvas, so I gess you can close this issue, the answer is YES ! Thanks again !

EParisot avatar Nov 25 '20 13:11 EParisot