Remove now unneeded single quotes in examples
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user