diff --git a/old/examples/getfeatureinfo.html b/old/examples/getfeatureinfo.html deleted file mode 100644 index 16446f0cfd..0000000000 --- a/old/examples/getfeatureinfo.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - Get feature info example - - - - - -
- -
-
-
-
-
- -
- -
-

GetFeatureInfo example

-

Example of a WMS layer and a vector layer, both configured to provide feature information on click.

-
-

See the getfeatureinfo.js source to see how this is done.

-
-
getfeatureinfo
-
-
-
-   -
-
- -
- -
- - - - - - diff --git a/old/examples/getfeatureinfo.js b/old/examples/getfeatureinfo.js deleted file mode 100644 index ae7258d6cb..0000000000 --- a/old/examples/getfeatureinfo.js +++ /dev/null @@ -1,56 +0,0 @@ -goog.require('ol.Map'); -goog.require('ol.RendererHint'); -goog.require('ol.View2D'); -goog.require('ol.layer.Tile'); -goog.require('ol.layer.Vector'); -goog.require('ol.parser.GeoJSON'); -goog.require('ol.source.TileWMS'); -goog.require('ol.source.Vector'); -goog.require('ol.style.Stroke'); -goog.require('ol.style.Style'); - - -var wms = new ol.layer.Tile({ - source: new ol.source.TileWMS({ - url: 'http://demo.opengeo.org/geoserver/wms', - params: {'LAYERS': 'ne:ne'} - }) -}); - -var vector = new ol.layer.Vector({ - source: new ol.source.Vector({ - parser: new ol.parser.GeoJSON(), - url: 'data/countries.geojson' - }), - style: new ol.style.Style({ - symbolizers: [ - new ol.style.Stroke({ - color: '#33cc66', - width: 2 - }) - ] - }), - transformFeatureInfo: function(features) { - return features.length > 0 ? - features[0].getId() + ': ' + features[0].get('name') : ' '; - } -}); - -var map = new ol.Map({ - layers: [wms, vector], - renderer: ol.RendererHint.CANVAS, - target: 'map', - view: new ol.View2D({ - center: [0, 0], - zoom: 1 - }) -}); - -map.on('singleclick', function(evt) { - map.getFeatureInfo({ - pixel: evt.getPixel(), - success: function(featureInfoByLayer) { - document.getElementById('info').innerHTML = featureInfoByLayer.join(''); - } - }); -}); diff --git a/old/src/ol/source/featureinfosource.js b/old/src/ol/source/featureinfosource.js deleted file mode 100644 index 61f4d116ec..0000000000 --- a/old/src/ol/source/featureinfosource.js +++ /dev/null @@ -1,19 +0,0 @@ -goog.provide('ol.source.FeatureInfoSource'); - - - -/** - * @interface - * @todo stability experimental - */ -ol.source.FeatureInfoSource = function() {}; - - -/** - * @param {ol.Pixel} pixel Pixel. - * @param {ol.Map} map The map that the pixel belongs to. - * @param {function(string)} success Callback with feature info. - * @param {function()=} opt_error Optional error callback. - */ -ol.source.FeatureInfoSource.prototype.getFeatureInfoForPixel = - goog.abstractMethod; diff --git a/old/src/ol/source/wmssource.exports b/old/src/ol/source/wmssource.exports deleted file mode 100644 index ec75424b4f..0000000000 --- a/old/src/ol/source/wmssource.exports +++ /dev/null @@ -1,3 +0,0 @@ -@exportSymbol ol.source.WMSGetFeatureInfoMethod -@exportProperty ol.source.WMSGetFeatureInfoMethod.IFRAME -@exportProperty ol.source.WMSGetFeatureInfoMethod.XHR_GET