Commit b0b0dc37 authored by Niels Holt's avatar Niels Holt

Major update:

- gruntfile.js and Gruntfile_setup.json
- included packages
parent c10c7034
*.swp
*.pyc
bower_components
dist
fabfile_deploy.py
/*.bak
/node_modules/
/bower_components/
/.sass-cache/
{
"bitwise" : true,
"curly" : false,
"eqeqeq" : false,
"es3" : false,
"es5" : false,
"esnext" : false,
"forin" : false,
"freeze" : true,
"funcscope" : false,
"futurehostile" : true,
"iterator" : false,
"latedef" : true,
"lastsemic" : true,
"noarg" : true,
"nocomma" : false,
"nonew" : true,
"notypeof" : true,
"shadow" : false,
"strict" : true,
"sub" : true,
"undef" : true,
"unused" : true,
"boss" : true,
"eqnull" : true,
"node" : true,
"globals": {
"jQuery" : true,
"console" : false,
"module" : true,
"document" : false,
"L" : true,
"$" : false,
"moment" : false,
"_" : false,
"DEBUG" : false,
"alert" : false
}
}
{
"isApplication" : true, //true for stand-alone applications. false for packages/plugins
"haveJavaScript" : true, //true if the packages have js-files
"haveStyleSheet" : true, //true if the packages have css and/or scss-files
"haveGhPages" : false, //true if there is a branch "gh-pages" used for demos
"minimizeBowerComponentsJS" : true, //Only for application: Minifies the bower components js-file
"minimizeBowerComponentsCSS" : true, //Only for application: Minifies the bower components css-file
"beforeProdCmd" : "", //Cmd to be run at the start of prod-task. Multi cmd can be separated by "&"
"beforeDevCmd" : "", //Cmd to be run at the start of dev-task. Multi cmd can be separated by "&"
"afterProdCmd" : "", //Cmd to be run at the end of prod-task. Multi cmd can be separated by "&"
"afterDevCmd" : "", //Cmd to be run at the end of dev-task. Multi cmd can be separated by "&"
"exitOnJSHintError" : true, //if false any error in JSHint will not exit the task
"cleanUp" : true, //In debug: set to false
"bowerCheckExistence" : true, //true=all bower components must be present. false=allows missing files (only in debug)
"bowerDebugging" : false
}
Installation instructions
-------------------------
Just place the www directory somewhere your PHP enabled web server can see it.
Copyright (c) 2016 Niels Holt
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
# IFM Maps
Provides a web map interface to FCOO METOC forecasts. IFM Maps is
distributed under the GPL v.3 License, see COPYING for the full license.
Installation instructions can be found in the INSTALL file.
# Marine Forecast / Sejladsudsigt
>Shows current meteorological and oceanographic forecast and measurements
## Feature Requests
[![Feature Requests](http://feathub.com/FCOO/ifm-maps?format=svg)](http://feathub.com/FCOO/ifm-maps)
## Installation
Simply deploy the dist directory somewhere on your PHP enabled
web server.
## Description
Provides a web map interface to FCOO METOC forecasts.
Marine Forecast is distributed under the GPL v.3 License, see `COPYING` for the full license.
## Development
## links
### Dependencies
Before beginning to develop IFM Maps you need to install Bower:
#### Main page [ifm.fcoo.dk](https://ifm.fcoo.dk) or [sejladsudsigt.dk](https://sejladsudsigt.dk)
http://bower.io/
#### Specific domain ifm.fcoo.dk/DOMAIN e.g. [ifm.fcoo.dk/denmark](https://ifm.fcoo.dk/denmark)
Bower will need a recent version of node.js.
#### Information in [Danish](http://fcoo.dk/mf-info) or [English](http://fcoo.dk/mf-info/?lang=eng)
To download the web dependencies for IFM Maps you should simply
run:
#### Manual in [Danish](http://fcoo.dk/mf-tutorial) or [English](http://fcoo.dk/mf-tutorial/?lang=eng)
bower install
## Parameters
#### `lang=en`
Show in English
#### `domain=`*DOMAIN*
Same as `ifm.fcoo.dk/`*DOMAIN*
### Building and deploying
We are using Fabric for building a deployment version of IFM Maps
and for the deployment itself:
http://www.fabfile.org/
#### `hidecontrols=` *id1*`,`*id2*`,`..`,`*idN*
Using [leaflet-control-display](https://github.com/FCOO/leaflet-control-display) to hide controls.
In the build process we use the following tools which you will also
need to download if you want to build an optimised version of
IFM Maps:
| id | Controls |
| :--: | :--- |
| `zoom` | Zoom button (top-left) |
| `attribution` | Standard leaflet (bottom-right) |
| `layers` | Layer selector (top-right) |
| `scale` | km and nm scale (bottom-left) |
| `legend` | Layer legends (bottom-left) |
| `mouseposition` | Mouse-position (bottom-left) |
| `ALL` | Hide all controls |
http://yui.github.io/yuicompressor/
#### `showcontrols=` *id1*`,`*id2*`,`..`,`*idN*
Used together with `hidecontrols=ALL` to display specific controls.
E.q. `hidecontrols=ALL&showcontrols=scale` will hide all controls but the scale
https://www.npmjs.com/package/uglify-js
You might have to change a few paths to executables in fabfile.py
when you run it.
## Copyright and License
To build IFM Maps you simply type:
Copyright (c) 2016 [FCOO](https://github.com/FCOO)
fab build
## Contact information
You can then copy the dist directory to whereever you want to deploy
it. We have automated this process so that we can type:
Jesper Baasch-Larsen jla@fcoo.dk
Niels Holt nho@fcoo.dk
fab -R staging deploy
or:
fab -R production deploy
For our deployment. You are of course welcome to use the fabfile.py
for inspiration for automating your deployment but you will need
to dig into the details of the deploy method of the script.
{
"name": "ifm-maps",
"version": "1.0.0",
"version": "2.0.0",
"homepage": "https://github.com/FCOO/ifm-maps",
"authors": [
"Jesper Baasch-Larsen <jla@fcoo.dk>"
"Jesper Larsen jla@fcoo.dk",
"Niels Holt nho@fcoo.dk"
],
"description": "Information for Marineers - Maps",
"license": "GPLv2",
"private": true,
"description": "",
"repository": {
"type": "git",
"url": "git://github.com/FCOO/ifm-maps.git"
},
"dependencies": {
"fcoo-application": "fcoo/fcoo-application#0.0.*",
"fcoo-leaflet": "fcoo/fcoo-leaflet#0.2.*",
"moment": "^2.11.2",
"jquery-ui": "^1.11.4",
"noty": "^2.3.8",
"leaflet-control-position": "fcoo/leaflet-control-position#latest",
"leaflet-control-legend": "fcoo/leaflet-control-legend",
"leaflet-categorized-layers": "fcoo/leaflet-categorized-layers",
"leaflet-control-osm-geocoder": "https://github.com/k4r573n/leaflet-control-osm-geocoder.git",
"leaflet-plugins": "fcoo/leaflet-plugins",
"leaflet-time-slider": "fcoo/leaflet-time-slider#latest",
"leaflet-control-vertical": "fcoo/leaflet-control-vertical",
"leaflet-control-datetime": "fcoo/leaflet-control-datetime",
"leaflet-languageselector": "fcoo/leaflet-languageselector",
"leaflet-control-fa-button": "fcoo/leaflet-control-fa-button",
"leaflet-tilelayer-wms-pydap": "fcoo/leaflet-tilelayer-wms-pydap",
"leaflet-tilelayer-wms-fcoo": "fcoo/leaflet-tilelayer-wms-fcoo",
"leaflet-geojsonlayer-fwarn": "fcoo/leaflet-geojsonlayer-fwarn",
"leaflet.locatecontrol": "jblarsen/leaflet-locatecontrol#^0.43.0",
"leaflet-layer-sealevel-denmark": "fcoo/leaflet-layer-sealevel-denmark",
"leaflet-layer-tides-greenland": "fcoo/leaflet-layer-tides-greenland",
"leaflet-geojsonlayer-msi": "fcoo/leaflet-geojsonlayer-msi"
},
"overrides": {
"moment": {
"main": [
"min/moment.min.js"
]
},
"jquery-ui": {
"main": [
"jquery-ui.min.js",
"themes/base/core.css",
"themes/base/slider.css",
"themes/ui-lightness/theme.css",
"themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png",
"themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png"
]
},
"leaflet-languageselector": {
"main": [
"leaflet-languageselector.js",
"leaflet-languageselector.css"
]
},
"leaflet-control-osm-geocoder": {
"main": [
"Control.OSMGeocoder.js",
"images/geocoder.png"
]
},
"leaflet-plugins": {
"main": [
"control/Permalink.js"
]
}
},
"devDependencies": {
"bourbon": "latest",
"modernizr-mixin": "latest",
"mathsass": "latest"
},
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
......@@ -14,58 +82,11 @@
"test",
"tests"
],
"dependencies": {
"Leaflet.MousePosition": "https://github.com/ardhi/Leaflet.MousePosition.git",
"Leaflet.dbpediaLayer": "https://github.com/kr1/Leaflet.dbpediaLayer.git",
"jquery-autoclick-while-pressed": "silviubogan/jquery-autoclick-while-pressed",
"jquery-base-slider": "fcoo/jquery-base-slider#latest",
"jquery-time-slider": "fcoo/jquery-time-slider#latest",
"leaflet-control-box": "fcoo/leaflet-control-box#latest",
"flag-icon-css": "~0.6.5",
"latlng-format": "NielsHolt/latlng-format#latest",
"leaflet-control-osm-geocoder": "https://github.com/k4r573n/leaflet-control-osm-geocoder.git",
"leaflet-languageselector": "https://github.com/buche/leaflet-languageselector.git",
"leaflet-plugins": "https://github.com/jblarsen/leaflet-plugins.git#master",
"leaflet-locatecontrol": "https://github.com/jblarsen/leaflet-locatecontrol.git",
"magellan": "https://github.com/dbarbalato/magellan.git#master",
"moment": "~2.9.0",
"noty": "~2.3.4",
"typedarray": "http://inexorabletash.github.io/polyfill/typedarray.js",
"Leaflet.Terminator": "https://github.com/jblarsen/Leaflet.Terminator.git",
"leaflet-control-position": "https://github.com/jblarsen/leaflet-control-position.git",
"leaflet-control-home": "https://github.com/jblarsen/leaflet-control-home.git",
"leaflet-categorized-layers": "https://github.com/jblarsen/leaflet-categorized-layers.git#master",
"leaflet": "https://github.com/jblarsen/Leaflet.git#master-dist",
"leaflet-control-datetime": "https://github.com/jblarsen/leaflet-control-datetime.git",
"leaflet-tilelayer-counting": "https://github.com/jblarsen/leaflet-tilelayer-counting.git",
"leaflet-control-legend": "https://github.com/jblarsen/leaflet-control-legend.git",
"leaflet-tilelayer-wms-pydap": "https://github.com/jblarsen/leaflet-tilelayer-wms-pydap.git",
"leaflet-tilelayer-wms-fcoo": "https://github.com/jblarsen/leaflet-tilelayer-wms-fcoo.git",
"leaflet-control-forecast-print": "https://github.com/jblarsen/leaflet-control-forecast-print.git",
"jQuery-ajaxTransport-XDomainRequest": "https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest.git#~1.0.4",
"leaflet-geojsonlayer-msi": "https://github.com/jblarsen/leaflet-geojsonlayer-msi.git",
"leaflet-geojsonlayer-fwarn": "https://github.com/jblarsen/leaflet-geojsonlayer-fwarn.git",
"leaflet-tilelayer-impact": "https://github.com/jblarsen/leaflet-tilelayer-impact.git",
"leaflet-layer-sealevel-denmark": "https://github.com/jblarsen/leaflet-layer-sealevel-denmark.git#master",
"leaflet-layer-tides-greenland": "https://github.com/jblarsen/leaflet-layer-tides-greenland.git#master",
"leaflet-double-scale": "fcoo/leaflet-double-scale#latest",
"leaflet-control-fa-button": "https://github.com/jblarsen/leaflet-control-fa-button.git",
"leaflet-control-vertical": "https://github.com/jblarsen/leaflet-control-vertical.git",
"leaflet.markercluster": "https://github.com/Leaflet/Leaflet.markercluster.git#1.0.0-beta.2.0",
"Leaflet.Sync": "https://github.com/turban/Leaflet.Sync.git#~0.0.5",
"leaflet-time-slider": "https://github.com/FCOO/leaflet-time-slider.git#latest",
"matchMedia": "https://github.com/paulirish/matchMedia.js.git#~0.2.0",
"jquery": "^1"
},
"resolutions": {
"leaflet": "master-dist",
"jquery": "^1",
"moment": "master",
"latlng-format": "1.0.0",
"fontawesome": "~4.4.0",
"leaflet.markercluster": "1.0.0-beta.2.0"
},
"moduleType": [
"es6"
]
],
"resolutions": {
"fcoo-application": "0.0.*",
"fcoo-leaflet": "0.2.*"
}
}
{
"version": 3,
"mappings": ";;;;AAOA,iBAAkB;EAAE,OAAO,EAAE,kBAAkB;;;;AAC/C,iBAAkB;EAAE,OAAO,EAAE,iBAAiB;;;;AAG7C,0BAAkB;EAAE,OAAO,EAAE,kBAAkB;;;AAC/C,0BAAkB;EAAE,OAAO,EAAE,iBAAiB;;;;AAM/C,IAAK;EACJ,gBAAgB,EAAE,KAAK;EACvB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;EACV,QAAQ,EAAE,MAAM;;;AAEhB,eAAW;EACV,UAAU,EAAE,UAAU;EACtB,MAAM,EAAI,MAAM;EAEhB,KAAK,EAAK,IAAI;EACd,SAAS,EAAG,KAAK;EACjB,SAAS,EAAG,KAAK;EAEjB,MAAM,EAAK,IAAI;EACf,UAAU,EAAG,KAAK;;;AAGnB,kCAAqB;EACpB,OAAO,EAAE,KAAK;EACd,MAAM,EAAE,MAAM;EACd,OAAO,EAAE,CAAC;;;AAEX,OAAG;EACF,MAAM,EAAE,GAAG;EACX,UAAU,EAAE,MAAM;EAClB,KAAK,EAAE,OAAO;EACZ,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,IAAI;EACnB,WAAW,EAAE,2BAA2B;;;AAEzC,WAAO;EACN,KAAK,EAAE,KAAK;;;AAEb,+BAAsB;EACrB,KAAK,EAAE,OAAO;EACZ,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,IAAI;EACnB,WAAW,EAAE,2BAA2B;EACxC,UAAU,EAAE,MAAM;EAClB,eAAe,EAAC,MAAM;;;AAGvB,SAAK;EACJ,UAAU,EAAE,IAAI;EAChB,KAAK,EAAK,IAAI;EACd,MAAM,EAAI,KAAK;;AAEhB,6DAA8D;;EAAE,SAAK;IAAC,MAAM,EAAE,KAAK;;;AACnF,6DAA8D;;EAAE,SAAK;IAAC,MAAM,EAAE,KAAK;;;AACnF,qCAAkD;;EAAE,SAAK;IAAC,MAAM,EAAE,KAAK",
"sources": ["index.scss"],
"names": [],
"file": "index.css"
}
.show-for-lang-da{display:inherit !important}.show-for-lang-en{display:none !important}.lang-en .show-for-lang-en{display:inherit !important}.lang-en .show-for-lang-da{display:none !important}body{background-color:white;margin:0;padding:0;overflow:hidden}body .container{box-sizing:border-box;margin:0 auto;width:100%;max-width:480px;min-width:280px;height:100%;min-height:480px}body .logo,body select,body #map{display:block;margin:0 auto;padding:0}body h1{margin:5px;text-align:center;color:#1c4b88;font-size:16pt;font-weight:bold;font-family:Tahoma,Helvetica,sans-serif}body select{width:250px}body select,body select option{color:#1c4b88;font-size:12pt;font-weight:bold;font-family:Tahoma,Helvetica,sans-serif;text-align:center;text-align-last:center}body #map{margin-top:10px;width:100%;height:300px}@media screen and (min-height: 481px) and (max-height: 568px){body #map{height:380px}}@media screen and (min-height: 569px) and (max-height: 640px){body #map{height:450px}}@media screen and (min-height: 641px){body #map{height:550px}}
/*# sourceMappingURL=index.min.css.map */
{
"version": 3,
"mappings": "AAOA,iBAAkB,CAAE,OAAO,CAAE,kBAAkB,CAC/C,iBAAkB,CAAE,OAAO,CAAE,iBAAiB,CAG7C,0BAAkB,CAAE,OAAO,CAAE,kBAAkB,CAC/C,0BAAkB,CAAE,OAAO,CAAE,iBAAiB,CAM/C,IAAK,CACJ,gBAAgB,CAAE,KAAK,CACvB,MAAM,CAAE,CAAC,CACT,OAAO,CAAE,CAAC,CACV,QAAQ,CAAE,MAAM,CAEhB,eAAW,CACV,UAAU,CAAE,UAAU,CACtB,MAAM,CAAI,MAAM,CAEhB,KAAK,CAAK,IAAI,CACd,SAAS,CAAG,KAAK,CACjB,SAAS,CAAG,KAAK,CAEjB,MAAM,CAAK,IAAI,CACf,UAAU,CAAG,KAAK,CAGnB,gCAAqB,CACpB,OAAO,CAAE,KAAK,CACd,MAAM,CAAE,MAAM,CACd,OAAO,CAAE,CAAC,CAEX,OAAG,CACF,MAAM,CAAE,GAAG,CACX,UAAU,CAAE,MAAM,CAClB,KAAK,CAAE,OAAO,CACZ,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,IAAI,CACnB,WAAW,CAAE,2BAA2B,CAEzC,WAAO,CACN,KAAK,CAAE,KAAK,CAEb,8BAAsB,CACrB,KAAK,CAAE,OAAO,CACZ,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,IAAI,CACnB,WAAW,CAAE,2BAA2B,CACxC,UAAU,CAAE,MAAM,CAClB,eAAe,CAAC,MAAM,CAGvB,SAAK,CACJ,UAAU,CAAE,IAAI,CAChB,KAAK,CAAK,IAAI,CACd,MAAM,CAAI,KAAK,CAEhB,6DAA8D,CAAE,SAAK,CAAC,MAAM,CAAE,KAAK,EACnF,6DAA8D,CAAE,SAAK,CAAC,MAAM,CAAE,KAAK,EACnF,qCAAkD,CAAE,SAAK,CAAC,MAAM,CAAE,KAAK",
"sources": ["index.scss"],
"names": [],
"file": "index.min.css"
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Point",
"coordinates": [
-52.88333333333333,
68.71666666666667
]
},
"type": "Feature",
"properties": {
"id": "Aasiaat",
"name": "Aasiaat (Egedesminde)"
}
},
{
"geometry": {
"type": "Point",
"coordinates": [
-52.21666666666667,
64.78333333333333
]
},
"type": "Feature",
"properties": {
"id": "Atammik",
"name": "Atammik (Fiskefjord)"
}
},
{
"geometry": {
"type": "Point",
"coordinates": [
-53.833333333333336,
67.91666666666667
]