Skip to content

Commit

Permalink
style: Adjust some linting.
Browse files Browse the repository at this point in the history
Update change log.
  • Loading branch information
manthey committed Sep 28, 2021
1 parent 657368c commit 8dfd8d2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

### Improvements

- Added more tile sources to the default list (#1107)

## Version 1.4.1

### Improvements

- Add a continuousCloseProximity option to annotations (#1106)

## Version 1.4.0
Expand Down
8 changes: 4 additions & 4 deletions examples/measure/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ if (query.extra) {
attribution: '<a href="https://www.microsoft.com/maps/product/terms.html">Microsoft</a> Virtual Earth',
subdomains: '0123',
minLevel: 1,
maxLevel: 19
maxLevel: 19,
name: 'Bing Satellite'
};
$('#basemap option[value="custom"]').before('<option value="bing-satellite">Bing Satellite</option>');
// This requires that you have an appropriate Esri ArcGIS license to use. It
// is possible that its use might be allowed in certain uses via
// https://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9
geo.osmLayer.tileSources['arcgis-satellite'] = {
url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.png',
attribution: '<a href="https://www.esri.com/en-us/search/?q=world%20imagery">Esri World Imagery</a>',
minLevel: 0,
maxLevel: 19
maxLevel: 19,
name: 'ArcGIS Satellite'
};
$('#basemap option[value="custom"]').before('<option value="arcgis-satellite">ArcGIS Satellite</option>');
}
// Add a blank tile for removing the map
geo.osmLayer.tileSources['false'] = {
Expand Down
4 changes: 2 additions & 2 deletions src/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1743,8 +1743,8 @@ var polygonAnnotation = function (args) {
end = true;
}
} else if (vertices.length >= 2 && layer.displayDistance(
vertices[0], null, evt.map, 'display') <=
layer.options('finalPointProximity')) {
vertices[0], null, evt.map, 'display') <=
layer.options('finalPointProximity')) {
end = true;
} else {
vertices[vertices.length - 1] = evt.mapgcs;
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ describe('geo.annotation', function () {
expect(ann.processAction(evt)).toBe(true);
expect(ann.options('vertices').length).toBe(4);
// test up near the end of the line
var evt = {
evt = {
state: {action: geo.geo_action.annotation_line},
mouse: {
map: vertices[0],
Expand Down

0 comments on commit 8dfd8d2

Please sign in to comment.