orchidsoftware / orchidsoftware/platform

Add more options when work with Map field

Open
#1,479 3 comments 0 reactions 1 assignee View on GitHub

@tabuna is already working on this.

Since Dec 27, 2020.

Dominant language
PHP
Stars
4.8k
Forks
662
Avg merge
1d 9h
Merged PRs (30d)
7

Description

Describe the solution you'd like
Firstly i'm really interested what you are doing on this platform.
When I work with a layout, i would like to have some options on Map field. Because something, i don't want to display Latitude and Longitude input field, only search input field is enough for user. Also can change position of Object seach and Object map.
Current behavior:

Map::make('place')->title('Object on the map')->help('Enter the coordinates, or use the search')

Describe alternatives you've considered
Perhaps it is worth expanding the attributes of methods that would hide a ready-made data set:

Map::make('place')
      ->title('Object on the map')
      ->hideAttributes(['latitude', 'longitude'])
      ->help('Enter the coordinates, or use the search')

Anyway, if i can custom the view by extend vendor/orchid/platform/resources/views/fields/map.blade.php, it's really good. That could help me change position layout of whatever i want.

Additional context
Screen Shot 2020-12-27 at 13 03 32

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.