Skip to content

Commit

Permalink
finish
Browse files Browse the repository at this point in the history
  • Loading branch information
Max committed Aug 8, 2022
1 parent 3971f1c commit 77684e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@ return [
```

```php
use Elbgoods\NovaMapboxField\NovaMapboxField;
use Elbgoods\NovaMapboxField\NovaMapboxMarkerField;

public function fields(Request $request)
{
return [
NovaMapboxField::make('Marker')
NovaMapboxMarkerField::make('Marker')
->longitude($this->longitude)
->latitude($this->latitude)
->zoom(8),
];
}
```

## Screenshot


## License

This project is open-sourced software licensed under the [MIT license](LICENSE.md).
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/DetailField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ export default {
@import "~mapbox-gl/dist/mapbox-gl.css";
#mapContainer {
height: 600px;
height: 450px;
}
</style>

0 comments on commit 77684e0

Please sign in to comment.