Codice Javascript
Files
- proj4js-compressed.js: proj4 geographic transformations library (link)
- ejs.js: ejs, javascript template library (link)
- mapset.js: management of different base cartography
- layer.js: extension of OpenLayers layers
- map.js: creation of the map and the html interface
- list.js: creation and update of the object list
- site.js: loading of areas and layers, initial configuration
- control.js: layers controls (checbox, etc).
- normaac.js: ricerca per indirizzo
- locations.js: lista delle coordinate di comuni e province, per nome e per istat.
mapset.js
layer.js
Useful functions:
- layer.reload() reload the layer and applies all the styles again
- layer.loadStyleMap(url, field, callback) load and applies a new style map (see style)
map.js
Useful functions:
- setMapset(id) //global function using the identifier of the mapset.
list.js
site.js
Useful functions:
- loadRemoteLayer(path, layer, callback) //global function to load a layer using jsonp protocol
control.js
normaac.js
locations.js
Useful functions:
- setLocus(str, zoom) //funzione globale: str va valorizzato col nome o codice istat del comune o della provincia.