https://github.com/michaelborn/mapwrapper
Quickly dump a big array of items onto a map using LeafletJS
https://github.com/michaelborn/mapwrapper
Last synced: about 2 months ago
JSON representation
Quickly dump a big array of items onto a map using LeafletJS
- Host: GitHub
- URL: https://github.com/michaelborn/mapwrapper
- Owner: michaelborn
- License: mit
- Created: 2018-10-15T20:41:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-05T14:32:38.000Z (over 7 years ago)
- Last Synced: 2025-03-02T23:30:25.480Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MapWrapper
Quickly dump a big array of items onto a map using LeafletJS.
## Getting Started
* Include the library on the page, duh. ``
* Render the map via `MapWrap(items, config)`. Note that `items` can be an empty array, and `config` is also optional.
## Example
```
listings = [
{
"id": "mls_1704218",
"title": "Single Family Residential, $49,900.00",
"address": "2570 Graffenburg, Frankfort NY 13340",
"url": "/buy/listings/1704218",
"lat": 43.03969100000000000,
"lng": -75.20268400000000000,
"img": "/app/uploads/listings/images/",
"imgalt": "listing at 2570 Graffenburg, Frankfort NY 13340"
}];
MapWrap( listings );
```