Commit 6d8f59b5 authored by JOE XMG's avatar JOE XMG
Browse files

update

parent 22fcb4d1
Pipeline #6293 passed with stage
in 6 seconds
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
export default {
input: 'main.js',
output: {
file: 'bundle.js',
format: 'iife'
},
plugins: [resolve(), commonjs()]
};
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Control Geocoder</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<link
rel="stylesheet"
href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css"
/>
</head>
<body>
<div id="map" style="width: 600px; height: 400px;"></div>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script>
<script>
var map = L.map('map').setView([0, 0], 2);
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
L.Control.geocoder({
geocoder: L.Control.Geocoder.nominatim()
}).addTo(map);
</script>
</body>
</html>
# leaflet-control-geocoder-demo-webpack
This demo demonstrates the usage of leaflet-control-geocoder using the [webpack](https://webpack.js.org/) bundler.
1. `cd demo-webpack/`
2. `npm install`
3. `npm run build`
4. `xdg-open index.html` or open `index.html` in your browser
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Control Geocoder</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="./dist/leaflet.css" />
</head>
<body>
<div id="map" style="width: 600px; height: 400px;"></div>
<script src="./dist/leaflet.js"></script>
</body>
</html>
import L from 'leaflet';
import 'leaflet-control-geocoder';
import 'leaflet/dist/leaflet.css';
import 'leaflet-control-geocoder/dist/Control.Geocoder.css';
var map = L.map('map').setView([0, 0], 2);
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
L.Control.geocoder({
geocoder: L.Control.Geocoder.nominatim()
}).addTo(map);
{
"name": "leaflet-control-geocoder-demo-webpack",
"private": true,
"scripts": {
"build": "webpack-cli"
},
"dependencies": {
"leaflet": "^1.5.1",
"leaflet-control-geocoder": "^1.8.0"
},
"devDependencies": {
"css-loader": "^5.0.0",
"file-loader": "^6.2.0",
"mini-css-extract-plugin": "^1.2.1",
"webpack": "^5.3.0",
"webpack-cli": "^4.1.0"
}
}
/* eslint-env node */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
mode: 'production',
entry: {
leaflet: './main.js'
},
output: {
publicPath: ''
},
plugins: [new MiniCssExtractPlugin()],
module: {
rules: [
{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, 'css-loader']
},
{
test: /\.(png|gif)$/,
use: ['file-loader']
}
]
}
};
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Control Geocoder</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no initial-scale=1, maximum-scale=1"
/>
<link rel="stylesheet" href="https://unpkg.com/leaflet@latest/dist/leaflet.css" />
<link rel="stylesheet" href="../dist/Control.Geocoder.css" />
<script src="https://unpkg.com/leaflet@latest/dist/leaflet-src.js"></script>
<script src="../dist/Control.Geocoder.js"></script>
<style type="text/css">
body {
margin: 0;
}
#map {
position: absolute;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
var map = L.map('map').setView([0, 0], 2);
var geocoder = L.Control.Geocoder.nominatim();
if (typeof URLSearchParams !== 'undefined' && location.search) {
// parse /?geocoder=nominatim from URL
var params = new URLSearchParams(location.search);
var geocoderString = params.get('geocoder');
if (geocoderString && L.Control.Geocoder[geocoderString]) {
console.log('Using geocoder', geocoderString);
geocoder = L.Control.Geocoder[geocoderString]();
} else if (geocoderString) {
console.warn('Unsupported geocoder', geocoderString);
}
}
var control = L.Control.geocoder({
query: 'Moon',
placeholder: 'Search here...',
geocoder: geocoder
}).addTo(map);
var marker;
setTimeout(function() {
control.setQuery('Earth');
}, 12000);
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
map.on('click', function(e) {
geocoder.reverse(e.latlng, map.options.crs.scale(map.getZoom()), function(results) {
var r = results[0];
if (r) {
if (marker) {
marker
.setLatLng(r.center)
.setPopupContent(r.html || r.name)
.openPopup();
} else {
marker = L.marker(r.center)
.bindPopup(r.name)
.addTo(map)
.openPopup();
}
}
});
});
</script>
</body>
</html>
.leaflet-control-geocoder {
border-radius: 4px;
background: white;
min-width: 26px;
min-height: 26px;
}
.leaflet-touch .leaflet-control-geocoder {
min-width: 30px;
min-height: 30px;
}
.leaflet-control-geocoder a,
.leaflet-control-geocoder .leaflet-control-geocoder-icon {
border-bottom: none;
display: inline-block;
}
.leaflet-control-geocoder .leaflet-control-geocoder-alternatives a {
width: inherit;
height: inherit;
line-height: inherit;
}
.leaflet-control-geocoder a:hover,
.leaflet-control-geocoder .leaflet-control-geocoder-icon:hover {
border-bottom: none;
display: inline-block;
}
.leaflet-control-geocoder-form {
display: none;
vertical-align: middle;
}
.leaflet-control-geocoder-expanded .leaflet-control-geocoder-form {
display: inline-block;
}
.leaflet-control-geocoder-form input {
font-size: 120%;
border: 0;
background-color: transparent;
width: 246px;
}
.leaflet-control-geocoder-icon {
border-radius: 4px;
width: 26px;
height: 26px;
border: none;
background-color: white;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.2 13l3.4 6.6c.6 1.1 2.5-.4 2-1.2l-4-6.2z'/%3E%3Ccircle cx='10.8' cy='8.9' r='3.9' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
}
.leaflet-touch .leaflet-control-geocoder-icon {
width: 30px;
height: 30px;
}
.leaflet-control-geocoder-throbber .leaflet-control-geocoder-icon {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='%23000' stroke-linecap='round' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cdefs/%3E%3Cg%3E%3Cpath stroke-opacity='.1' d='M14 8.4l3-5'/%3E%3Cpath stroke-opacity='.2' d='M15.6 10l5-3'/%3E%3Cpath stroke-opacity='.3' d='M16.2 12H22'/%3E%3Cpath stroke-opacity='.4' d='M15.6 14l5 3m-6.5-1.4l2.9 5'/%3E%3Cpath stroke-opacity='.5' d='M12 16.2V22m-2-6.4l-3 5'/%3E%3Cpath stroke-opacity='.6' d='M8.4 14l-5 3'/%3E%3Cpath stroke-opacity='.7' d='M7.8 12H2'/%3E%3Cpath stroke-opacity='.8' d='M8.4 10l-5-3'/%3E%3Cpath stroke-opacity='.9' d='M10 8.4l-3-5'/%3E%3Cpath d='M12 7.8V2'/%3E%3CanimateTransform attributeName='transform' calcMode='discrete' dur='1s' repeatCount='indefinite' type='rotate' values='0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12'/%3E%3C/g%3E%3C/svg%3E");
}
.leaflet-control-geocoder-form-no-error {
display: none;
}
.leaflet-control-geocoder-form input:focus {
outline: none;
}
.leaflet-control-geocoder-form button {
display: none;
}
.leaflet-control-geocoder-error {
margin-top: 8px;
margin-left: 8px;
display: block;
color: #444;
}
.leaflet-control-geocoder-alternatives {
display: block;
width: 272px;
list-style: none;
padding: 0;
margin: 0;
}
.leaflet-control-geocoder-alternatives-minimized {
display: none;
height: 0;
}
.leaflet-control-geocoder-alternatives li {
white-space: nowrap;
display: block;
overflow: hidden;
padding: 5px 8px;
text-overflow: ellipsis;
border-bottom: 1px solid #ccc;
cursor: pointer;
}
.leaflet-control-geocoder-alternatives li a,
.leaflet-control-geocoder-alternatives li a:hover {
width: inherit;
height: inherit;
line-height: inherit;
background: inherit;
border-radius: inherit;
text-align: left;
}
.leaflet-control-geocoder-alternatives li:last-child {
border-bottom: none;
}
.leaflet-control-geocoder-alternatives li:hover,
.leaflet-control-geocoder-selected {
background-color: #f5f5f5;
}
.leaflet-control-geocoder-address-detail {
}
.leaflet-control-geocoder-address-context {
color: #666;
}
This diff is collapsed.
{
"name": "leaflet-control-geocoder",
"version": "2.4.0",
"description": "Extendable geocoder with builtin support for OpenStreetMap Nominatim, Bing, Google, Mapbox, MapQuest, What3Words, Photon, Pelias, HERE, Neutrino, Plus codes",
"source": "src/index.ts",
"main": "dist/Control.Geocoder.js",
"module": "dist/Control.Geocoder.modern.js",
"types": "dist/index.d.ts",
"scripts": {
"prepare": "npm run build",
"build": "npm run build:1 && npm run build:2 && npm run build:3",
"build:1": "microbundle --no-pkg-main --entry src/index.ts --format iife --globals leaflet=L --output dist/Control.Geocoder.js --no-compress",
"build:2": "microbundle --no-pkg-main --entry src/index.ts --format iife --globals leaflet=L --output dist/Control.Geocoder.min.js",
"build:3": "microbundle --no-pkg-main --entry src/index.ts --format modern --output dist/Control.Geocoder.modern.js --no-compress",
"build:demo": "npm run build:demo-esbuild && npm run build:demo-rollup && npm run build:demo-webpack",
"build:demo-esbuild": "cd demo-esbuild && npm install && npm run build",
"build:demo-rollup": "cd demo-rollup && npm install && npm run build",
"build:demo-webpack": "cd demo-rollup && npm install && npm run build",
"changelog": "conventional-changelog --infile CHANGELOG.md --same-file --output-unreleased",
"doc": "typedoc --mode file --excludePrivate --stripInternal --moduleResolution node --out docs/ src/",
"test": "jest",
"lint": "eslint --ext .js,.ts ."
},
"repository": {
"type": "git",
"url": "git://github.com/perliedman/leaflet-control-geocoder.git"
},
"files": [
"LICENCE",
"dist/**",
"demo/**",
"src/**"
],
"keywords": [
"leaflet",
"geocoder",
"locations",
"openstreetmap",
"nominatim",
"bing",
"bingmaps",
"googlemaps",
"google-maps",
"mapbox",
"mapquest",
"opencage",
"what3words",
"photon",
"mapzen",
"pelias",
"here",
"neutrino",
"pluscodes",
"open location code"
],
"author": "Per Liedman <per@liedman.net>",
"contributors": [
"Simon Legner <Simon.Legner@gmail.com>"
],
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/perliedman/leaflet-control-geocoder/issues"
},
"devDependencies": {
"@types/leaflet": "^1.5.12",
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"conventional-changelog-cli": "^2.1.0",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^26.6.3",
"leaflet": "^1.6.0",
"microbundle": "^0.13.0",
"prettier": "^1.19.1",
"ts-jest": "^26.4.4",
"tslib": "^1.11.1",
"typedoc": "^0.19.2",
"typescript": "^3.8.3"
},
"peerDependencies": {
"leaflet": "^1.6.0"
},
"optionalDependencies": {
"open-location-code": "^1.0.0"
}
}
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`L.Control.Geocoder.ArcGis geocodes Innsbruck 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 47.34400000000003,
"lng": 11.467300000000058,
},
"_southWest": Object {
"lat": 47.19200000000003,
"lng": 11.315300000000057,
},
},
"center": Object {
"lat": 47.26800000000003,
"lng": 11.391300000000058,
},
"name": "Innsbruck, Innsbruck-Stadt, Tirol",
},
],
],
]
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`L.Control.Geocoder.Google geocodes Innsbruck 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 47.3599301,
"lng": 11.45593,
},
"_southWest": Object {
"lat": 47.21098000000001,
"lng": 11.3016499,
},
},
"center": Object {
"lat": 47.2692124,
"lng": 11.4041024,
},
"name": "Innsbruck, Austria",
"properties": Array [
Object {
"long_name": "Innsbruck",
"short_name": "Innsbruck",
"types": Array [
"locality",
"political",
],
},
Object {
"long_name": "Innsbruck",
"short_name": "Innsbruck",
"types": Array [
"administrative_area_level_2",
"political",
],
},
Object {
"long_name": "Tyrol",
"short_name": "Tyrol",
"types": Array [
"administrative_area_level_1",
"political",
],
},
Object {
"long_name": "Austria",
"short_name": "AT",
"types": Array [
"country",
"political",
],
},
],
},
],
],
]
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`L.Control.Geocoder.HERE geocodes Innsbruck 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 47.35922,
"lng": 11.45587,
},
"_southWest": Object {
"lat": 47.21082,
"lng": 11.30194,
},
},
"center": Object {
"lat": 47.268,
"lng": 11.3913,
},
"name": "Innsbruck, Tirol, Österreich",
"properties": Object {
"additionalData": Array [
Object {
"key": "CountryName",
"value": "Österreich",
},
Object {
"key": "StateName",
"value": "Tirol",
},
Object {
"key": "CountyName",
"value": "Innsbruck-Stadt",
},
],
"city": "Innsbruck",
"country": "AUT",
"county": "Innsbruck-Stadt",
"label": "Innsbruck, Tirol, Österreich",
"postalCode": "6020",
"state": "Tirol",
},
},
],
],
]
`;
exports[`L.Control.Geocoder.HEREv2 geocodes Innsbruck 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 42.36355,
"lng": -71.05439,
},
"_southWest": Object {
"lat": 42.36355,
"lng": -71.05439,
},
},
"center": Object {
"lat": 42.36355,
"lng": -71.05439,
},
"name": "Salumeria Italiana, 151 Richmond St, Boston, MA 02109, United States",
"properties": Object {
"city": "Boston",
"countryCode": "USA",
"countryName": "United States",
"county": "Suffolk",
"district": "North End",
"houseNumber": "151",
"label": "Salumeria Italiana, 151 Richmond St, Boston, MA 02109, United States",
"postalCode": "02109",
"state": "Massachusetts",
"stateCode": "MA",
"street": "Richmond St",
},
},
],
],
]
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`L.Control.Geocoder.Mapbox geocodes Milwaukee Ave 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 42.166602,
"lng": -87.921434,
},
"_southWest": Object {
"lat": 42.166602,
"lng": -87.921434,
},
},
"center": Object {
"lat": 42.166602,
"lng": -87.921434,
},
"name": "825 Milwaukee Ave, Deerfield, Illinois 60015, United States",
"properties": Object {
"address": "825",
"country": "United States",
"countryShortCode": "us",
"neighborhood": "Lake Cook Road",
"place": "Deerfield",
"postcode": "60015",
"region": "Illinois",
"text": "Milwaukee Ave",
},
},
],
],
]
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`L.Control.Geocoder.Nominatim geocodes Innsbruck 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 47.2808566,
"lng": 11.418183,
},
"_southWest": Object {
"lat": 47.2583715,
"lng": 11.3811871,
},
},
"center": Object {
"lat": 47.26951525,
"lng": 11.3971372042211,
},
"html": "<span class=\\"\\"> Innsbruck </span><br/><span class=\\"leaflet-control-geocoder-address-context\\">Tyrol Austria</span>",
"icon": "https://nominatim.openstreetmap.org/images/mapicons/poi_boundary_administrative.p.20.png",
"name": "Innsbruck, Tyrol, Austria",
"properties": Object {
"address": Object {
"city": "Innsbruck",
"city_district": "Innsbruck",
"country": "Austria",
"country_code": "at",
"county": "Innsbruck",
"state": "Tyrol",
},
"boundingbox": Array [
47.2583715,
47.2808566,
11.3811871,
11.418183,
],
"class": "boundary",
"display_name": "Innsbruck, Tyrol, Austria",
"icon": "https://nominatim.openstreetmap.org/images/mapicons/poi_boundary_administrative.p.20.png",
"importance": 0.763909048330467,
"lat": "47.26951525",
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"lon": "11.3971372042211",
"osm_id": 8182617,
"osm_type": "relation",
"place_id": 199282228,
"type": "administrative",
},
},
],
],
]
`;
exports[`L.Control.Geocoder.Nominatim reverse geocodes 47.3/11.3 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 47.2065094,
"lng": 11.3836945900354,
},
"_southWest": Object {
"lat": 47.2065094,
"lng": 11.3836945900354,
},
},
"center": Object {
"lat": 47.2065094,
"lng": 11.3836945900354,
},
"html": "<span class=\\"\\">Tyrol Austria</span>",
"name": "Innsbruck-Land, Tyrol, Austria",
"properties": Object {
"address": Object {
"country": "Austria",
"country_code": "at",
"county": "Innsbruck-Land",
"state": "Tyrol",
},
"boundingbox": Array [
"46.9624854",
"47.4499229",
"10.9896868",
"11.7051742",
],
"display_name": "Innsbruck-Land, Tyrol, Austria",
"lat": "47.2065094",
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"lon": "11.3836945900354",
"osm_id": 78251,
"osm_type": "relation",
"place_id": 197718025,
},
},
],
],
]
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`L.Control.Geocoder.Openrouteservice geocodes Innsbruck 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 47.29398,
"lng": 11.452584553,
},
"_southWest": Object {
"lat": 47.2470573997,
"lng": 11.3218091258,
},
},
"center": Object {
"lat": 47.272308,
"lng": 11.407851,
},
"name": "Innsbruck, Austria",
"properties": Object {
"accuracy": "centroid",
"confidence": 1,
"continent": "Europe",
"country": "Austria",
"country_a": "AUT",
"county": "Innsbruck",
"county_a": "IN",
"id": "101748061",
"label": "Innsbruck, Austria",
"layer": "locality",
"localadmin": "Innsbruck",
"locality": "Innsbruck",
"match_type": "exact",
"name": "Innsbruck",
"region": "Tirol",
"region_a": "TR",
"source_id": "101748061",
},
},
],
],
]
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`L.Control.Geocoder.Photon geocodes Innsbruck 1`] = `
Array [
Array [
Array [
Object {
"bbox": Object {
"_northEast": Object {
"lat": 47.2808566,
"lng": 11.4181209,
},
"_southWest": Object {
"lat": 47.2583715,
"lng": 11.3811871,
},
},
"center": Object {
"lat": 47.2654296,
"lng": 11.3927685,
},
"html": undefined,
"name": "Innsbruck, Innsbruck, Tyrol, Austria",
"properties": Object {
"city": "Innsbruck",
"country": "Austria",
"countrycode": "AT",
"extent": Array [
11.3811871,
47.2808566,
11.4181209,
47.2583715,
],
"name": "Innsbruck",
"osm_id": 8182617,
"osm_key": "place",
"osm_type": "R",
"osm_value": "city",
"state": "Tyrol",
"type": "locality",
},
},
Object {
"bbox": Object {
"_northEast": Object {
"lat": 47.2690806,
"lng": 11.3959095,
},
"_southWest": Object {
"lat": 47.2690806,
"lng": 11.3959095,
},
},
"center": Object {
"lat": 47.2690806,
"lng": 11.3959095,
},
"html": undefined,
"name": "Mozarteum Innsbruck, Universitätsstraße, Innsbruck, Tyrol, Austria",
"properties": Object {
"city": "Innsbruck",
"country": "Austria",
"countrycode": "AT",
"district": "Innenstadt",
"housenumber": "1",
"name": "Mozarteum Innsbruck",
"osm_id": 7323902269,
"osm_key": "amenity",
"osm_type": "N",
"osm_value": "music_school",
"postcode": "6020",
"state": "Tyrol",
"street": "Universitätsstraße",
"type": "house",
},
},
],
],
]
`;
import { testXMLHttpRequest } from './mockXMLHttpRequest';
import { ArcGis } from '../src/geocoders/arcgis';
describe('L.Control.Geocoder.ArcGis', () => {
it('geocodes Innsbruck', () => {
const geocoder = new ArcGis();
const callback = jest.fn();
testXMLHttpRequest(
'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?token=&SingleLine=Innsbruck&outFields=Addr_Type&forStorage=false&maxLocations=10&f=json',
{
spatialReference: { wkid: 4326, latestWkid: 4326 },
candidates: [
{
address: 'Innsbruck, Innsbruck-Stadt, Tirol',
location: { x: 11.391300000000058, y: 47.268000000000029 },
score: 100,
attributes: { Addr_Type: 'Locality' },
extent: {
xmin: 11.315300000000057,
ymin: 47.192000000000029,
xmax: 11.467300000000058,
ymax: 47.34400000000003
}
}
]
},
() => geocoder.geocode('Innsbruck', callback)
);
const feature = callback.mock.calls[0][0][0];
expect(feature.name).toBe('Innsbruck, Innsbruck-Stadt, Tirol');
expect(feature.center).toStrictEqual({ lat: 47.26800000000003, lng: 11.391300000000058 });
expect(feature.bbox).toStrictEqual({
_northEast: { lat: 47.34400000000003, lng: 11.467300000000058 },
_southWest: { lat: 47.19200000000003, lng: 11.315300000000057 }
});
expect(callback.mock.calls).toMatchSnapshot();
});
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment