Merge pull request #8292 from fredj/cleanup

Remove now unneeded single quotes in examples
This commit is contained in:
Frédéric Junod
2018-06-21 08:19:53 +02:00
committed by GitHub
2 changed files with 7 additions and 8 deletions
+3 -3
View File
@@ -71,9 +71,9 @@ map.on('click', function(evt) {
const coordinates = feature.getGeometry().getCoordinates(); const coordinates = feature.getGeometry().getCoordinates();
popup.setPosition(coordinates); popup.setPosition(coordinates);
$(element).popover({ $(element).popover({
'placement': 'top', placement: 'top',
'html': true, html: true,
'content': feature.get('name') content: feature.get('name')
}); });
$(element).popover('show'); $(element).popover('show');
} else { } else {
+4 -5
View File
@@ -51,12 +51,11 @@ map.on('click', function(evt) {
$(element).popover('destroy'); $(element).popover('destroy');
popup.setPosition(coordinate); popup.setPosition(coordinate);
// the keys are quoted to prevent renaming in ADVANCED mode.
$(element).popover({ $(element).popover({
'placement': 'top', placement: 'top',
'animation': false, animation: false,
'html': true, html: true,
'content': '<p>The location you clicked was:</p><code>' + hdms + '</code>' content: '<p>The location you clicked was:</p><code>' + hdms + '</code>'
}); });
$(element).popover('show'); $(element).popover('show');
}); });