superinteractive / statamic-super-location
Super Location is a Statamic fieldtype powered by OpenStreetMap search and map tiles.
Package info
github.com/superinteractive/statamic-super-location
Language:Vue
Type:statamic-addon
pkg:composer/superinteractive/statamic-super-location
Requires
- php: ^8.4
- illuminate/support: ^10.0 || ^11.0 || ^12.0 || ^13.0
- statamic/cms: ^5.0 || ^6.0
Requires (Dev)
- laravel/pint: ^1.24
- orchestra/testbench: ^8.36 || ^9.15 || ^10.8 || ^11.0
- pestphp/pest: ^2.36 || ^3.8 || ^4.0
- pestphp/pest-plugin-laravel: ^2.4 || ^3.0 || ^4.0
- phpunit/phpunit: ^10.5 || ^11.5 || ^12.5 || ^13.0
This package is auto-updated.
Last update: 2026-06-08 11:23:57 UTC
README
Super Location is a Statamic addon that provides a “Super Location” fieldtype backed by OpenStreetMap search. It includes an autocomplete search bar, configurable defaults, and a publishable config file.
Features
- Autocomplete search powered by the public OpenStreetMap Nominatim API.
- Interactive Leaflet map with a single draggable marker.
- Automatically fills street, postal code, city, country, state, latitude, and longitude.
- Returns a structured array that you can use directly in Antlers, Blade, or PHP.
Installation
Install the addon with Composer:
composer require superinteractive/statamic-super-location
Publish the config when you need to adjust map defaults, tile providers, or search settings:
php artisan vendor:publish --tag="statamic-super-location-config"
Configuration
The publishable config file lives at config/statamic/super-location.php. You can customize the default map center, zoom level, and the endpoints that are used for fetching tiles and search results.
Building Assets
The Control Panel assets are powered by Vite + Tailwind. During development, run:
cd Packages/statamic-super-location
npm install
npm run dev
For distribution, build the assets so the compiled files end up in resources/dist/build:
npm run build
Documentation
See docs/usage.md for implementation notes and templating tips.