socib / Leaflet.TimeDimension

Add time dimension capabilities on a Leaflet map.
MIT License
433 stars 138 forks source link

Where are the arrows being generated? #217

Closed jzadra closed 2 years ago

jzadra commented 2 years ago

I'm curious where in the code the arrows are created. I can't seem to find anything that specifies how they are drawn.

r1m commented 2 years ago

They are rendered with CSS using Bootstrap Glyphicons

.timecontrol-play.pause:before {
    content: "\e073";
}
jzadra commented 2 years ago

Hi, I was just looking into this more, and I'm wondering if you are referring to the arrow used for the "Play" button? I was wondering about the directional arrows on the map. The only way I've found to do arrows in leaflet is to create them out of lines, which is a very computation intensive process.

r1m commented 2 years ago

Yes I was talking about player button because that the only thing rendered by the plugin itself. Arrows on the map as seen in demo (https://apps.socib.es/Leaflet.TimeDimension/examples/example3.html) are rendered by a map tile server as image tiles (sample). Check Thredds, geoserver, mapserver or equivalent.

The purpose of this plugin in mainly to control the time parameter of the layer. Everything else is handled by leaflet.

jzadra commented 2 years ago

Thanks for your time, I appreciate the info!