Skip to content

Commit

Permalink
Merge pull request #178 from pelias/de-mapzenify-round-2
Browse files Browse the repository at this point in the history
De-mapzenify round 2
  • Loading branch information
orangejulius authored May 1, 2019
2 parents 93c2058 + b90a5e4 commit f915387
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[![npm version](https://img.shields.io/npm/v/leaflet-geocoder-mapzen.svg?style=flat-square)](https://www.npmjs.com/package/leaflet-geocoder-mapzen)
[![CircleCI](https://img.shields.io/circleci/project/mapzen/leaflet-geocoder.svg?style=flat-square)](https://circleci.com/gh/mapzen/leaflet-geocoder/)
[![David devDependencies](https://img.shields.io/david/dev/mapzen/leaflet-geocoder.svg?style=flat-square)](https://david-dm.org/mapzen/leaflet-geocoder/#info=devDependencies)
[![Coverage Status](https://img.shields.io/coveralls/mapzen/leaflet-geocoder.svg?style=flat-square)](https://coveralls.io/github/mapzen/leaflet-geocoder?branch=master)
[![npm version](https://img.shields.io/npm/v/pelias-leaflet-plugin.svg?style=flat-square)](https://www.npmjs.com/package/pelias-leaflet-plugin)
[![Build Status](https://travis-ci.com/pelias/leaflet-geocoder.svg?branch=master)](https://travis-ci.com/pelias/leaflet-geocoder)
[![Gitter chat](https://img.shields.io/gitter/room/pelias/pelias.svg?style=flat-square)](https://gitter.im/pelias/pelias)
[![Leaflet 1.0.0 ready](https://img.shields.io/badge/Leaflet%201.0.0-%E2%9C%93-brightgreen.svg?style=flat-square)](http://leafletjs.com/)

Expand Down Expand Up @@ -350,10 +348,10 @@ geocoder.removeFrom(map); // or geocoder.remove() in Leaflet v1
If you `require()` or `import` and set it to a variable, you can also use `new` with that variable.

```javascript
var MyGeocoderPlugin = require('leaflet-geocoder-mapzen');
var MyGeocoderPlugin = require('pelias-leaflet-plugin');

// Alternatively
import MyGeocoderPlugin from 'leaflet-geocoder-mapzen';
import MyGeocoderPlugin from 'pelias-leaflet-plugin';

// Then
var geocoder = new MyGeocoderPlugin('<your-api-key>');
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "leaflet-geocoder-mapzen",
"name": "pelias-leaflet-plugin",
"version": "1.9.4",
"homepage": "https://github.com/mapzen/leaflet-geocoder",
"homepage": "https://github.com/pelias/leaflet-plugin",
"authors": [
"Harish Krishna",
"Lou Huang <[email protected]>"
Expand Down

0 comments on commit f915387

Please sign in to comment.