Use existing local coordinate var

This commit is contained in:
Frederic Junod
2012-10-02 11:26:44 +02:00
parent 8a5e7c77c9
commit 3df18d2df8

View File

@@ -44,5 +44,5 @@ map.addEventListener('click', function(evt) {
'Welcome to ol3. The location you clicked was<br>' +
ol.CoordinateFormat.hdms(ol.Projection.transformWithCodes(
coordinate, 'EPSG:3857', 'EPSG:4326'));
popup.setCoordinate(evt.getCoordinate());
popup.setCoordinate(coordinate);
});