Changeset 8990


Ignore:
Timestamp:
Mar 25, 2011, 4:20:23 PM (14 years ago)
Author:
dennisw
Message:

gheat - 2 overlays toegevoegd (afbeeldingen)

Location:
src/gheat
Files:
136 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • src/gheat/script/OpenStreetMap.js

    r8988 r8990  
    142142
    143143
    144 OpenLayers.Layer.OSM.Heatmap = OpenLayers.Class(OpenLayers.Layer.OSM, {
     144OpenLayers.Layer.OSM.Overlay1 = OpenLayers.Class(OpenLayers.Layer.OSM, {
    145145    initialize: function(name, options) {
    146146        var url = [
    147             "classic/${z}/${x},${y}.png"
     147            "overlay_1/${z}/${x},${y}.png"
    148148        ];
    149149        options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options);
     
    152152    },
    153153
    154     CLASS_NAME: "OpenLayers.Layer.Heatmap"
     154    CLASS_NAME: "OpenLayers.Layer.Overlay1"
    155155});
     156
     157OpenLayers.Layer.OSM.Overlay2 = OpenLayers.Class(OpenLayers.Layer.OSM, {
     158    initialize: function(name, options) {
     159        var url = [
     160            "overlay_2/${z}/${x},${y}.png"
     161        ];
     162        options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options);
     163        var newArguments = [name, url, options];
     164        OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
     165    },
     166
     167    CLASS_NAME: "OpenLayers.Layer.Overlay2"
     168});
  • src/gheat/script/heatmap.js

    r8988 r8990  
    1717        layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
    1818        map.addLayer(layerMapnik);
    19         layerHeatmap = new OpenLayers.Layer.OSM.Heatmap("Heatmap", {isBaseLayer: false, visibility: true});
     19        layerHeatmap = new OpenLayers.Layer.OSM.Overlay1("Overlay_1", {isBaseLayer: false, visibility: true});
     20        map.addLayer(layerHeatmap);
     21        layerHeatmap = new OpenLayers.Layer.OSM.Overlay2("Overlay_2", {isBaseLayer: false, visibility: true});
    2022        map.addLayer(layerHeatmap);
    2123       
Note: See TracChangeset for help on using the changeset viewer.