Commit e03f0a64 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸
Browse files

doc update

parent 7e9b4336
......@@ -30,6 +30,13 @@ Open browser on http://localhost:8080/demo
## Usage example
var map = L.map('map').setView([ 58.5, 19.0 ], 5);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom : 18,
attribution : '&copy; <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors</a>'
}).addTo(map);
var language = 'en';
var player = new L.Control.Player({
"lang" : language,
......@@ -46,34 +53,26 @@ Open browser on http://localhost:8080/demo
map.addControl(containerControl);
var domain = {
"weather" : {
"2days" : [ "DMI/HIRLAM/S03", "FCOO/GETM", "SMHI/HIRLAM",
"SMHI/HIROMB" ],
"5days" : [ "ECMWF/DXD/DENMARK", "ECMWF/LL15" ]
}
"weather" : [
"SMHI/NEMO/NS02/currentCombined",
"SMHI/NEMO/NS02/windCombined",
"SMHI/NEMO/NS02/windDirection",
"SMHI/NEMO/NS02/iceCombined" ]
};
var weatherLangData = {
"tTitle" : "Weather",
"current" : "Current",
"wind" : "Wind",
"wave" : "Wave",
"sst" : "SST",
"ice" : "Ice",
"currentDirection" : "Direction",
"currentDirection3D" : "Direction 3D",
"currentSpeed" : "Speed",
"currentSpeed3D" : "Speed 3D",
"windDirection" : "Direction",
"windSpeed" : "Speed",
"windSpeedDirection" : "Combined",
"wavePeriod" : "Period",
"waveDirection" : "Direction",
"waveHeight" : "Height",
"iceDirection" : "Direction",
"iceSpeed" : "Speed",
"iceThickness" : "Thickness",
"iceConcentration" : "Concentration"
"currentCombinedTitle" : "Current arrows with speed",
"currentSpeedTitle" : "Current speed",
"windCombinedTitle" : "Wind flags with speed",
"windDirectionTitle" : "Wind flags",
"waveCombinedTitle" : "Wave",
"iceCombinedTitle" : "SST and ice",
"currentCombined" : "Current speed [knots]",
"windCombined" : "Windspeed [m/s]",
"iceCombinedice" : "Ice concentration [%]",
"iceCombinedsst" : "Sea surface temperature [℃]",
"waveCombined" : "Height [m]"
};
var stores = [];
......@@ -86,7 +85,7 @@ Open browser on http://localhost:8080/demo
"proxy" : 'proxy'
});
containerControl.addComponent("Weather", weatherControl);
containerControl.addComponent("Forecasts", weatherControl);
......
image.png

347 KB | W: | H:

image.png

330 KB | W: | H:

image.png
image.png
image.png
image.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment