Download the PHP package codewithdennis/filament-simple-map without Composer
On this page you can find all versions of the php package codewithdennis/filament-simple-map. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codewithdennis/filament-simple-map
More information about codewithdennis/filament-simple-map
Files in codewithdennis/filament-simple-map
Package filament-simple-map
Short Description This package offers a straightforward and easy-to-use map action component for your Filament application.
License MIT
Homepage https://github.com/codewithdennis/filament-simple-map
Informations about the package filament-simple-map
Filament Simple Map
This package provides a simple and user-friendly map display action component for your Filament application. It utilizes an iframe to render the map, ensuring seamless integration. Ensure you have a Google Maps API key to use this package.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
This package supports the following Google Maps modes place
, view
, streetview
, search
and directions
. The default mode is place
. You can use it for Table Actions, Infolists, Forms, and regular actions. Just make sure you import the right component.
Place
Methods that are available with the default place mode.
Defines map marker location.
Defines center of the map view.
Sets initial zoom level of the map.
Sets the map to satellite view. (default: roadmap)
Defines the language to use for UI elements and for the display of labels on map tiles.
Defines the appropriate borders and labels to display, based on geopolitical sensitivities.
Here is an example of how to use the place mode.
View
To use the view mode, you need to call the viewing
method.
Sets the map to viewing mode.
Defines center of the map view.
Sets initial zoom level of the map.
Sets the map to satellite view. (default: roadmap)
Here is an example of how to use the view
mode.
Directions
To use the directions mode, you need to call the directions
method.
Defines the starting point for calculating directions.
Defines the destination point for calculating directions.
Specifies one or more intermediary places to route directions between the origin and destination.
Specifies features to avoid in directions. Note that this doesn't preclude routes that include the restricted feature(s); it biases the result to more favorable routes.
Sets the mode of transport to flying.
Sets the mode of transport to walking.
Sets the mode of transport to bicycling.
Sets the mode of transport to transit.
Sets the mode of transport to driving.
Sets the unit system to imperial. (default: metric)
Defines center of the map view.
Sets the map to satellite view. (default: roadmap)
Defines the language to use for UI elements and for the display of labels on map tiles.
Defines the appropriate borders and labels to display, based on geopolitical sensitivities.
Here is an example of how to use the directions mode.
Streetview
To use the streetview mode, you need to call the streetview
method.
Defines the location to display street view.
Indicates the compass heading of the camera in degrees clockwise from North.
Specifies the angle, up or down, of the camera.
Determines the horizontal field of view of the image.
Defines center of the map view.
Sets initial zoom level of the map.
Defines the language to use for UI elements and for the display of labels on map tiles.
Defines the appropriate borders and labels to display, based on geopolitical sensitivities.
Search
To use the search mode, you need to call the search
method.
Defines the search term.
Defines center of the map view.
Sets initial zoom level of the map.
Sets the map to satellite view. (default: roadmap)
Defines the language to use for UI elements and for the display of labels on map tiles.
Defines the appropriate borders and labels to display, based on geopolitical sensitivities.
Here is an example of how to use the search mode.
Contributing
Please see CONTRIBUTING for details.
Credits
- CodeWithDennis
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-simple-map with dependencies
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.15.0