File tree 8 files changed +15
-15
lines changed
8 files changed +15
-15
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "arrowParens": "avoid",
3
+ "printWidth": 100,
4
+ "singleQuote": true,
5
+ "trailingComma": "none"
6
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -170,11 +170,7 @@ export class GeocoderControl extends EventedControl {
170
170
const className = 'leaflet-control-geocoder' ;
171
171
const container = L . DomUtil . create ( 'div' , className + ' leaflet-bar' ) as HTMLDivElement ;
172
172
const icon = L . DomUtil . create ( 'button' , className + '-icon' , container ) as HTMLButtonElement ;
173
- const form = L . DomUtil . create (
174
- 'div' ,
175
- className + '-form' ,
176
- container
177
- ) as HTMLDivElement ;
173
+ const form = L . DomUtil . create ( 'div' , className + '-form' , container ) as HTMLDivElement ;
178
174
179
175
this . _map = map ;
180
176
this . _container = container ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class MapQuest implements IGeocoder {
40
40
getJSON (
41
41
this . options . serviceUrl + '/address' ,
42
42
params ,
43
- L . Util . bind ( function ( data ) {
43
+ L . Util . bind ( function ( data ) {
44
44
const results : GeocodingResult [ ] = [ ] ;
45
45
if ( data . results && data . results [ 0 ] . locations ) {
46
46
for ( let i = data . results [ 0 ] . locations . length - 1 ; i >= 0 ; i -- ) {
@@ -68,7 +68,7 @@ export class MapQuest implements IGeocoder {
68
68
getJSON (
69
69
this . options . serviceUrl + '/reverse' ,
70
70
params ,
71
- L . Util . bind ( function ( data ) {
71
+ L . Util . bind ( function ( data ) {
72
72
const results : GeocodingResult [ ] = [ ] ;
73
73
if ( data . results && data . results [ 0 ] . locations ) {
74
74
for ( let i = data . results [ 0 ] . locations . length - 1 ; i >= 0 ; i -- ) {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export interface NominatimOptions extends GeocoderOptions {
64
64
export class Nominatim implements IGeocoder {
65
65
options : NominatimOptions = {
66
66
serviceUrl : 'https://nominatim.openstreetmap.org/' ,
67
- htmlTemplate : function ( r : NominatimResult ) {
67
+ htmlTemplate : function ( r : NominatimResult ) {
68
68
const address = r . address ;
69
69
let className : string ;
70
70
const parts = [ ] ;
Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ export class Pelias implements IGeocoder {
62
62
_parseResults ( data , bboxname ) {
63
63
const results : GeocodingResult [ ] = [ ] ;
64
64
L . geoJSON ( data , {
65
- pointToLayer : function ( feature , latlng ) {
65
+ pointToLayer : function ( feature , latlng ) {
66
66
return L . circleMarker ( latlng ) ;
67
67
} ,
68
- onEachFeature : function ( feature , layer : any ) {
68
+ onEachFeature : function ( feature , layer : any ) {
69
69
const result = { } as GeocodingResult ;
70
70
let bbox ;
71
71
let center ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export class Photon implements IGeocoder {
34
34
getJSON (
35
35
this . options . serviceUrl ,
36
36
params ,
37
- L . Util . bind ( function ( data ) {
37
+ L . Util . bind ( function ( data ) {
38
38
cb . call ( context , this . _decodeFeatures ( data ) ) ;
39
39
} , this )
40
40
) ;
@@ -52,7 +52,7 @@ export class Photon implements IGeocoder {
52
52
getJSON (
53
53
this . options . reverseUrl ,
54
54
params ,
55
- L . Util . bind ( function ( data ) {
55
+ L . Util . bind ( function ( data ) {
56
56
cb . call ( context , this . _decodeFeatures ( data ) ) ;
57
57
} , this )
58
58
) ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export function getJSON(
83
83
callback : ( message : any ) => void
84
84
) : void {
85
85
const xmlHttp = new XMLHttpRequest ( ) ;
86
- xmlHttp . onreadystatechange = function ( ) {
86
+ xmlHttp . onreadystatechange = function ( ) {
87
87
if ( xmlHttp . readyState !== 4 ) {
88
88
return ;
89
89
}
You can’t perform that action at this time.
0 commit comments