Download the PHP package gabrielesbaiz/nova-field-map without Composer

On this page you can find all versions of the php package gabrielesbaiz/nova-field-map. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-field-map

NovaField Map

A Leaflet map field for Laravel Nova 5 — reads the coordinate column your model already has, draws it, and lets an administrator drop the pin themselves.

Latest version Downloads Stars Sponsor

📖 Read the documentation →

Every one of the 58 methods with its signature, a playground where you build a field with controls and watch the chain, the preview and the serialized payload change together, plus recipes, tile providers and the upgrade path from 2.x.

[!CAUTION] Upgrading from 2.x? Read UPGRADE.md first. Three things changed that your resources will notice: popup content is now escaped by default (2.x rendered it as raw HTML, which was a stored-XSS hole), the field now resolves its own attribute instead of being handed data at make() time, and minimap(), measure(), exportImage() and popupActions() do not exist. Every other 2.x call still works.

[!IMPORTANT] Does this save you time? A ⭐ costs you nothing and helps other developers find it. Sponsoring keeps it compatible with every new Nova release.

What it does

If all you need is to show a latitude and a longitude, you do not need this package. Two Number fields do that with less JavaScript and less to go wrong, and an administrator who knows the coordinates can type them. This package exists for when the shape of the place is the information:

The trade is size and honesty about it: a page that renders a map pays roughly 52 kB gzipped for Leaflet. If an index table needs a location column and nothing more, use snapshot() or two numbers rather than a live map per row.

Requirements

Nova 4 is not supported. Use 2.x for Nova 4.

Installation

The service provider is auto-discovered and the assets ship built: no migrations, no nova:publish, nothing to compile. Both publish steps are optional — the defaults use OpenStreetMap tiles, which need no key.

Full installation guide →

Artisan commands

Command Purpose
nova-field-map:doctor Verifies the built assets exist, the configured keys are present, and every tile host responds. --skip-network skips the outbound requests.

See the commands page.

Documentation

Documentation site Everything: install, configure, operate.
Playground Build a field with controls; read the chain, the preview and the payload as they change.
API reference All 58 methods, searchable, with signatures.
Recipes Store locator, delivery zone, address form, GPS track.
Tile providers The ten built in, which need a key, and adding your own.
Troubleshooting Blank maps, missing tiles, popups showing as text.
Security The threat model and what escaping actually covers.
UPGRADE.md Upgrading from 2.x. Read before you start.
CHANGELOG.md What changed, and when.

Testing

There is no CI. Those commands are the contract, and between them they prove the parts that are easy to break: 2.x chains still serialize, popup content is escaped by default and sanitised when allowed, an empty collection never reaches fitBounds, exactly one layer control renders, two fields on one page keep their own marker icons, and map.remove() really runs on unmount.

Contributing

Pull requests and issues are welcome. Run the five commands above before opening one — a change that leaves any of them red will be asked for a fix first.

Security vulnerabilities

Please review our security policy for reporting a vulnerability. Please do not open a public issue.

Credits

Built on Leaflet, Leaflet.markercluster, Leaflet-Geoman and DOMPurify. Geocoding by Nominatim unless configured otherwise.

Support this package

I maintain this on evenings and weekends, alongside a full-time job writing insurance software. Keeping it green across new Nova majors is the unglamorous part, and it is what keeps this installable in your composer.json next year too.

If it is useful to you:

Sponsor on GitHub

Disclaimer

This package is provided as is. It renders geographic data supplied by your application and by third-party tile and geocoding providers; the accuracy of what appears on the map, and the licence terms of the tiles you choose to serve, are the deploying application's responsibility, not this package's.

License

MIT. See LICENSE.md. The MIT licence's warranty disclaimer and limitation of liability apply in full, alongside the section above.


All versions of nova-field-map with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
laravel/nova Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gabrielesbaiz/nova-field-map contains the following files

Loading the files please wait ...