You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
1.9 KiB

#!/bin/bash
declare -a js=(
"https://raw.githubusercontent.com/shramov/leaflet-plugins/master/layer/tile/Bing.js"
"https://raw.githubusercontent.com/brunob/leaflet.fullscreen/master/Control.FullScreen.js"
"https://raw.githubusercontent.com/Norkart/Leaflet-MiniMap/master/src/Control.MiniMap.js"
"https://unpkg.com/leaflet.gridlayer.googlemutant@latest/dist/Leaflet.GoogleMutant.js"
"https://raw.githubusercontent.com/shramov/leaflet-plugins/master/layer/vector/GPX.js"
"https://raw.githubusercontent.com/shramov/leaflet-plugins/master/layer/vector/GPX.Speed.js"
"https://raw.githubusercontent.com/shramov/leaflet-plugins/master/layer/vector/KML.js"
"https://unpkg.com/leaflet.markercluster@latest/dist/leaflet.markercluster-src.js"
"https://raw.githubusercontent.com/leaflet-extras/leaflet-providers/master/leaflet-providers.js"
"https://raw.githubusercontent.com/shramov/leaflet-plugins/master/layer/Marker.Rotate.js"
"https://raw.githubusercontent.com/shramov/leaflet-plugins/master/layer/vector/TOPOJSON.js"
);
for i in "${js[@]}"
do
wget $i -O "plugins/$( basename $i )"
done
declare -a images=(
"https://raw.githubusercontent.com/brunob/leaflet.fullscreen/master/icon-fullscreen.svg"
"https://raw.githubusercontent.com/Norkart/Leaflet-MiniMap/master/src/images/toggle.png"
"https://raw.githubusercontent.com/Norkart/Leaflet-MiniMap/master/src/images/toggle.svg"
);
for i in "${images[@]}"
do
wget $i -O "plugins/images/$( basename $i )"
done
wget -O plugins/leaflet.markercluster.css https://unpkg.com/leaflet.markercluster@latest/dist/MarkerCluster.css https://unpkg.com/leaflet.markercluster@latest/dist/MarkerCluster.Default.css
# todo dans plugins/leaflet-plugins.css avec ajout de images/ aux url(xxx)
# https://raw.githubusercontent.com/brunob/leaflet.fullscreen/master/Control.FullScreen.css
# https://raw.githubusercontent.com/Norkart/Leaflet-MiniMap/master/src/Control.MiniMap.css