source: src/gheat/script/heatmap.js@ 9781

Last change on this file since 9781 was 9082, checked in by dennisw, 14 years ago

Added data Huub.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision
  • Property svn:mime-type set to text/plain
File size: 1.2 KB
Line 
1function init(){
2 map = new OpenLayers.Map('heatmap', {
3 controls: [
4 new OpenLayers.Control.Navigation(),
5 new OpenLayers.Control.PanZoomBar(),
6 new OpenLayers.Control.ScaleLine(),
7 new OpenLayers.Control.LayerSwitcher()
8 ],
9 maxExtent: new OpenLayers.Bounds(-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892),
10 numZoomLevels:18,
11 maxResolution:156543.0339,
12 units:'m',
13 projection: "EPSG:900913",
14 displayProjection: new OpenLayers.Projection("EPSG:4326")
15 });
16
17 layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
18 map.addLayer(layerMapnik);
19 layerHeatmap = new OpenLayers.Layer.OSM.Overlay1("Huub_1", {isBaseLayer: false, visibility: true});
20 map.addLayer(layerHeatmap);
21 layerHeatmap = new OpenLayers.Layer.OSM.Overlay2("Huub_2", {isBaseLayer: false, visibility: true});
22 map.addLayer(layerHeatmap);
23 layerHeatmap = new OpenLayers.Layer.OSM.Overlay3("Huub_3", {isBaseLayer: false, visibility: true});
24 map.addLayer(layerHeatmap);
25
26 var lon = 4.4585017;
27 var lat = 52.1406583;
28 var zoom = 13;
29
30 var lonLat = new OpenLayers.LonLat(lon, lat).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
31 map.setCenter (lonLat, zoom);
32}
Note: See TracBrowser for help on using the repository browser.