Download the PHP package opscale-co/nova-geospatial-fields without Composer
On this page you can find all versions of the php package opscale-co/nova-geospatial-fields. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download opscale-co/nova-geospatial-fields
More information about opscale-co/nova-geospatial-fields
Files in opscale-co/nova-geospatial-fields
Package nova-geospatial-fields
Short Description Laravel Nova fields for geospatial data — render Location pins, Addresses with geocoding, Geofence polygons, Area circles, and Routes on interactive Leaflet maps.
License MIT
Informations about the package nova-geospatial-fields
Support us
At Opscale, we're passionate about contributing to the open-source community by providing solutions that help businesses scale efficiently. If you've found our tools helpful, here are a few ways you can show your support:
⭐ Star this repository to help others discover our work and be part of our growing community. Every star makes a difference!
💬 Share your experience by leaving a review on Trustpilot or sharing your thoughts on social media. Your feedback helps us improve and grow!
📧 Send us feedback on what we can improve at [email protected]. We value your input to make our tools even better for everyone.
🙏 Get involved by actively contributing to our open-source repositories. Your participation benefits the entire community and helps push the boundaries of what's possible.
💼 Hire us if you need custom dashboards, admin panels, internal tools or MVPs tailored to your business. With our expertise, we can help you systematize operations or enhance your existing product. Contact us at [email protected] to discuss your project needs.
Thanks for helping Opscale continue to scale! 🚀
Description
Storing latitude/longitude pairs, street addresses, or delivery routes in a database is easy. Seeing them on a map inside Nova is not — until now. This package ships five purpose-built Nova fields backed by an interactive Leaflet map, so your admin panel shows the shape of your geodata, not just the numbers. Compatible with Nova 5.
| Field | Purpose | Storage |
|---|---|---|
Location |
Single pin — a lat/lng point picked from the map. | GeoJSON Point |
Address |
Text box that geocodes (via Nominatim or Photon) to a pin. | GeoJSON Point + formatted address |
Geofence |
Closed polygon — draw the perimeter of a zone. | GeoJSON Polygon |
Area |
Circle defined by a center point + radius (meters). | GeoJSON Point + radius |
Route |
Multi-waypoint polyline for paths or delivery routes. | GeoJSON LineString |
Installation
The package auto-registers its service provider.
Back each field with a json column (or text) — the payload is stored as GeoJSON so you can query it with your database's native geo support if present, or as plain JSON otherwise.
Usage
Field behavior
| View | Behavior |
|---|---|
| Create / Update | Interactive Leaflet map with drawing tools (marker / polygon / circle / polyline). Address shows a search input that geocodes on submit. |
| Detail | Read-only map showing the stored shape, centered and fit to the data. |
| Index | Compact text summary (e.g. 40.42, -3.70 for a point, 6 vertices for a polygon). |
| API | fillAttributeFromRequest accepts raw GeoJSON strings as well as the internal JSON payload. |
Configuration
Under the hood
| Layer | Dependency |
|---|---|
| Map | Leaflet |
| Drawing | Leaflet.draw |
| Routing | Leaflet Routing Machine + OSRM |
| Geocoding | Nominatim or Photon |
| Circle → GeoJSON | @turf/circle |
Testing
License
MIT