https://github.com/fitzwilliammuseum/maps
https://github.com/fitzwilliammuseum/maps
laravel maps
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fitzwilliammuseum/maps
- Owner: FitzwilliamMuseum
- License: mit
- Created: 2021-09-10T11:18:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T15:30:41.000Z (almost 5 years ago)
- Last Synced: 2025-03-04T06:29:27.280Z (over 1 year ago)
- Topics: laravel, maps
- Language: JavaScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Maps for your Laravel application
[](https://gitlab.com/gonoware/laravel-maps)
[]()
[](https://packagist.org/packages/gonoware/laravel-maps)
[](https://gitlab.styleci.io/repos/8146646)
[](https://packagist.org/packages/gonoware/laravel-maps)
[](https://packagist.org/packages/gonoware/laravel-maps)
Using this package you can easily display maps on your website.
Supported map services:
* Google Maps
* OpenStreetMap
* Bing Maps
* MapQuest
* Yandex Maps
* MapKit (beta)
> Note: Yandex Maps API does not work in Chrome.
For Laravel 5.5 use version [1.0.3](https://gitlab.com/gonoware/laravel-maps/tree/v1.0.3)
## Features
| | Google Maps | OpenStreetMap | Bing Maps | MapQuest | Yandex Maps | MapKit |
|---|:---:|:---:|:---:|:---:|:---:|:---:|
| [Map](#basic-map) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
| [Markers](#map-with-markers) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
| [Marker Links](#marker-links) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
| [Marker Popups](#marker-popups) | ✔ | ✔ | ✔ | ✔ | ✔ | ❌ |
| [Custom Marker Icons](#custom-marker-icons) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
| [Marker Click Event](#marker-clicked) | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
## Installation
This package can be installed through Composer.
```bash
composer require gonoware/laravel-maps
```
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add
the ServiceProvider.
Publish the compiled assets to `public/vendor/maps` with one of these
commands:
```bash
php artisan vendor:publish --tag=maps
```
```bash
php artisan vendor:publish --provider="GoNoWare\Maps\MapsServiceProvider" --tag=public
```
> When updating, use the `--force` switch to overwrite existing assets:
```bash
php artisan vendor:publish --tag=maps --force
```
Optionally, you can also publish the config file of this package with this
command to `config/vendor/maps.php`:
```bash
php artisan vendor:publish --provider="GoNoWare\Maps\MapsServiceProvider" --tag=config
```
## Usage
Load the map styles by adding the following directive to your
Blade template before the `` closing tag.
```php
@mapstyles
```
Then add the following directive to your Blade template
before the `