platform
platform copied to clipboard
Add more options when work with Map field
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

Hey @minhloc2011, I don't think anyone needs to hide only one coordinate. What do you think about adding one method withoutCoordinates?
Map::make('place')
->title('Object on the map')
->help('Enter the coordinates, or use the search')
->withoutCoordinates()
As for bringing the search to the top, I'm not sure. Can you tell me the advantage? After all, when editing, it will always be empty at the top.
Would you like to work on this?
@tabuna Method withoutCoordinates looks good for me. About bringing the search to the top, when editing, we can fill in the input after selected the result. How do you think?
Hi @minhloc2011, sorry for the wait. I had the holidays. I don't really understand what you mean. Can you visualize it?