File tree Expand file tree Collapse file tree 8 files changed +15
-15
lines changed
Expand file tree Collapse file tree 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 {
170170 const className = 'leaflet-control-geocoder' ;
171171 const container = L . DomUtil . create ( 'div' , className + ' leaflet-bar' ) as HTMLDivElement ;
172172 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 ;
178174
179175 this . _map = map ;
180176 this . _container = container ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class MapQuest implements IGeocoder {
4040 getJSON (
4141 this . options . serviceUrl + '/address' ,
4242 params ,
43- L . Util . bind ( function ( data ) {
43+ L . Util . bind ( function ( data ) {
4444 const results : GeocodingResult [ ] = [ ] ;
4545 if ( data . results && data . results [ 0 ] . locations ) {
4646 for ( let i = data . results [ 0 ] . locations . length - 1 ; i >= 0 ; i -- ) {
@@ -68,7 +68,7 @@ export class MapQuest implements IGeocoder {
6868 getJSON (
6969 this . options . serviceUrl + '/reverse' ,
7070 params ,
71- L . Util . bind ( function ( data ) {
71+ L . Util . bind ( function ( data ) {
7272 const results : GeocodingResult [ ] = [ ] ;
7373 if ( data . results && data . results [ 0 ] . locations ) {
7474 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 {
6464export class Nominatim implements IGeocoder {
6565 options : NominatimOptions = {
6666 serviceUrl : 'https://nominatim.openstreetmap.org/' ,
67- htmlTemplate : function ( r : NominatimResult ) {
67+ htmlTemplate : function ( r : NominatimResult ) {
6868 const address = r . address ;
6969 let className : string ;
7070 const parts = [ ] ;
Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ export class Pelias implements IGeocoder {
6262 _parseResults ( data , bboxname ) {
6363 const results : GeocodingResult [ ] = [ ] ;
6464 L . geoJSON ( data , {
65- pointToLayer : function ( feature , latlng ) {
65+ pointToLayer : function ( feature , latlng ) {
6666 return L . circleMarker ( latlng ) ;
6767 } ,
68- onEachFeature : function ( feature , layer : any ) {
68+ onEachFeature : function ( feature , layer : any ) {
6969 const result = { } as GeocodingResult ;
7070 let bbox ;
7171 let center ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export class Photon implements IGeocoder {
3434 getJSON (
3535 this . options . serviceUrl ,
3636 params ,
37- L . Util . bind ( function ( data ) {
37+ L . Util . bind ( function ( data ) {
3838 cb . call ( context , this . _decodeFeatures ( data ) ) ;
3939 } , this )
4040 ) ;
@@ -52,7 +52,7 @@ export class Photon implements IGeocoder {
5252 getJSON (
5353 this . options . reverseUrl ,
5454 params ,
55- L . Util . bind ( function ( data ) {
55+ L . Util . bind ( function ( data ) {
5656 cb . call ( context , this . _decodeFeatures ( data ) ) ;
5757 } , this )
5858 ) ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export function getJSON(
8383 callback : ( message : any ) => void
8484) : void {
8585 const xmlHttp = new XMLHttpRequest ( ) ;
86- xmlHttp . onreadystatechange = function ( ) {
86+ xmlHttp . onreadystatechange = function ( ) {
8787 if ( xmlHttp . readyState !== 4 ) {
8888 return ;
8989 }
You can’t perform that action at this time.
0 commit comments