Remove now unneeded single quotes in examples

This commit is contained in:
Frederic Junod
2018-06-20 17:11:59 +02:00
parent ff34bb75cd
commit a8fa6e53ff
2 changed files with 7 additions and 8 deletions

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 {

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');
}); });