Merge pull request #1637 from fredj/getfeatureinfo-example

Use evt.coordinate instead of evt.getCoordinate()
This commit is contained in:
Frédéric Junod
2014-02-04 06:46:07 -08:00

View File

@@ -33,7 +33,7 @@ map.on('singleclick', function(evt) {
document.getElementById('info').innerHTML = '';
var viewResolution = /** @type {number} */ (view.getResolution());
var url = wmsSource.getGetFeatureInfoUrl(
evt.getCoordinate(), viewResolution, viewProjection,
evt.coordinate, viewResolution, viewProjection,
{'INFO_FORMAT': 'text/html'});
if (url) {
document.getElementById('info').innerHTML =