diff --git a/examples/measure.html b/examples/measure.html index c5176ab017..b594b37e05 100644 --- a/examples/measure.html +++ b/examples/measure.html @@ -5,8 +5,6 @@ shortdesc: Example of using the ol.interaction.Draw interaction to create a simp docs: >

NOTE: By default, length and area are calculated using the projected coordinates. This is not accurate for projections like Mercator where the projected meters do not correspond to meters on the ground. To get a standarized measurement across all projections, use the geodesic measures.

tags: "draw, edit, measure, vector" -resources: - - https://code.jquery.com/jquery-1.11.2.min.js ---
diff --git a/examples/measure.js b/examples/measure.js index 1e154cdcef..7693d7ee82 100644 --- a/examples/measure.js +++ b/examples/measure.js @@ -117,7 +117,7 @@ var pointerMoveHandler = function(evt) { helpTooltipElement.innerHTML = helpMsg; helpTooltip.setPosition(evt.coordinate); - $(helpTooltipElement).removeClass('hidden'); + helpTooltipElement.classList.remove('hidden'); }; @@ -132,8 +132,8 @@ var map = new ol.Map({ map.on('pointermove', pointerMoveHandler); -$(map.getViewport()).on('mouseout', function() { - $(helpTooltipElement).addClass('hidden'); +map.getViewport().addEventListener('mouseout', function() { + helpTooltipElement.classList.add('hidden'); }); var typeSelect = document.getElementById('type');