Nova Map

Laravel Nova Map Field
Alternatives To Nova Map
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Larecipe2,12330114 months ago33March 25, 202225mitPHP
🍪 Write gorgeous documentation for your products using Markdown inside your Laravel app.
Laravel Stats1,58733233 months ago42May 31, 2022mitPHP
📈 Get insights about your Laravel or Lumen Project
Nova Flexible Content716162 months ago30April 21, 2022128mitPHP
Flexible Content & Repeater Fields for Laravel Nova
Laravel Server Monitor705533 months ago36January 19, 2022mitPHP
Don't let your servers just melt down
Awesome Laravel Nova455
a year ago
Curated list of Laravel Nova resources
Nova Tabs4192127 months ago47October 05, 20225PHP
Laravel Nova Tabs Package
Laravel Nova Lang396232 months ago70October 28, 20221mitPHP
🌌 Language files for Laravel Nova translated into 40+ languages. Feel free to submit your language or update an existing one!
Scout Extended3781114 months ago48October 21, 202241mitPHP
Scout Extended: The Full Power of Algolia in Laravel
Multitenancy367115 days ago13June 07, 2022mitPHP
A simple and opinionated package for providing subdomain based multi-tenancy to Laravel
Nova Permission359739 months ago52August 23, 202232PHP
A Laravel Nova tool for Spatie's laravel-permission library
Alternatives To Nova Map
Select To Compare

Alternative Project Comparisons

Total Downloads Latest Stable Version

Map Field

This map field currently ONLY shows in details view


You can use this Map Field with three different sort of spatial data:

  • GeoJSON String property

  • Latitude and Longitude properties

  • Latitude and Longitude both in a single text field

  • Core Laravel Spatial Types

    • Point
    • LineString
    • Polygon
    • Geometry
    • GeometryCollection
    • MultiPoint
    • MultiLineString
    • MultiPolygon To use these core types you need to install grimzy/laravel-mysql-spatial See the section below on setting this up. This can work with other databases, but YMMV.
  • You can set the height of the map in px

  • The field is disabled in Index and Form views by default

  • This is very much a WIP - please submit issues to GitHub

Spatial Types

To specify what sort of spatial data you are passing to this field you MUST set the spatialType() for example


These are the valid Spatial Types

  • LatLon
  • LatLonField (single field)
  • GeoJSON
  • Point
  • LineString
  • Polygon
  • Geometry
  • GeometryCollection
  • MultiPoint
  • MultiLineString
  • MultiPolygon



Map::make('Some Point Field', 'point_field_name')


Map::make('Some Polygon Field', 'polygon_field_name')


Map::make('Some GeoJSON Field')

Latitude & Longitude (in seperate fields)

Map::make('Some Point Location')

Latitude & Longitude (in single fields)

Map::make('Some Point Location', 'coordinate_field_name')

Set the Height

Map::make('Some Point Field', 'point_field_name')

Setting up the Laravel Spatial Types

You need to install grimzy/laravel-mysql-spatial into your main application

composer require grimzy/laravel-mysql-spatial

Add the SpatialTrait to your Model

use SpatialTrait;

You then also need to set any spatial fields you have set in the Model

protected $spatialFields = [

Your Model is now ready to process spatial data to Nova

Future Development

  • Editing capabilities for all Spatial Types
  • View Place Field address on a Map
  • Remove reliance on grimzy package from accessing core Spatial Types
  • Allow all DB spatial fields to be used
  • Customize the map futher
    • Tailwind Height classes
    • Customise Geometry Styling
      • Marker Icon
      • Colors, Thicknesses, Opacity
    • Basemap
      • Streets
      • Topo
      • Satellite
    • Navigation Tools (Compass, Zoom In/Out)
  • Alternative Map Providers
    • Google Maps
    • Mapbox
    • OpenLayers
Popular Nova Projects
Popular Laravel Projects
Popular Libraries Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Spatial Analysis