DefinitelyTyped/leaflet-geocoder-mapzen/leaflet-geocoder-mapzen-tests.ts
Alejandro Sánchez 1adaa22d7a [WIP] Add type definitions for Leaflet 1.0 (#11165)
* Rename leaflet.d.ts to leaflet-0.7.d.ts

* Defined several important interfaces and the skeleton of some others

* Started adding tests

* Added more interfaces, factory methods and tests

* Implemented other interfaces and nested namespaces

* Added more types
2016-09-19 16:07:25 +09:00

8 lines
410 B
TypeScript

var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}),
map = new L.Map('map', {layers: [osm], center: new L.LatLng(-37.7772, 175.2756), zoom: 15 });
// Add geocoding plugin
L.control.geocoder('search-MKZrG6M').addTo(map);