-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d18b72f
commit 751e4ec
Showing
12 changed files
with
21,258 additions
and
26,398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
name: Geoapify | ||
menu: Providers | ||
route: /providers/geoapify | ||
--- | ||
|
||
import Playground from '../components/Playground'; | ||
import Map from '../components/Map'; | ||
|
||
# Geoapify Provider | ||
|
||
**note**: Geoapify services require an API key. [Obtain geoapify][1]. | ||
For more options and configurations, see the [Geoapify developer docs][2]. | ||
|
||
<Playground> | ||
<Map provider="Geoapify" /> | ||
</Playground> | ||
|
||
```js | ||
import { GeoapifyProvider } from 'leaflet-geosearch'; | ||
|
||
const provider = new GeoapifyProvider({ | ||
params: { | ||
apiKey: '__YOUR_HERE_KEY__', | ||
}, | ||
}); | ||
|
||
// add to leaflet | ||
import { GeoSearchControl } from 'leaflet-geosearch'; | ||
|
||
map.addControl( | ||
new GeoSearchControl({ | ||
provider, | ||
style: 'bar', | ||
}), | ||
); | ||
``` | ||
|
||
[1]: https://apidocs.geoapify.com/ | ||
[2]: https://apidocs.geoapify.com/docs/geocoding/forward-geocoding/#geocode-addresses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ export default { | |
'OpenStreetMap', | ||
'Pelias', | ||
'Custom Providers', | ||
'Geoapify', | ||
], | ||
}, | ||
], | ||
|
Oops, something went wrong.