Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Map doesn't refresh on second search try. #52

Open
marcoguidara opened this issue May 13, 2021 · 4 comments
Open

Map doesn't refresh on second search try. #52

marcoguidara opened this issue May 13, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@marcoguidara
Copy link

marcoguidara commented May 13, 2021

Describe the bug
When I submit a search into map search bar, the first time the map gets refreshed. If I submit another search without clearing the bar with the "x button", the map doesn't get refreshed.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Nova Edit resource form.
  2. Click on map search bar
  3. Fill the search bar and press return
  4. Wait for map refresh
  5. Change some data into search bar and press return
  6. Map doesn't refresh.

Expected behavior
Map should refresh after every search submit

Screenshots
If applicable, add screenshots to help explain your problem.

Environment:

  • Device Name & Model: Asus Vivobook
  • OS & Version: Ubuntu 18.04
  • Browser & Version: Chromium Web Browser 90.0.4430.93
  • Laravel Version: 8.12
  • PHP Version: 7.4
  • Package Version: 1

Additional context
Add any other context about the problem here.

@marcoguidara marcoguidara added the bug Something isn't working label May 13, 2021
@mikebronner
Copy link
Owner

@marcoguidara I believe this is probably a bug with the underlying mapping engine, leaflet. I'll keep this issue open and investigate it when I am able. I'll be happy to review any PRs, if you can send one.

@marcoguidara
Copy link
Author

Thank you for your prompt reply.
Sadly, I can't set up a PR on the project I'm using the package.

If may help, this is the way I'm using the field now:

<?php

namespace App\Nova\Traits;

use GeneaLabs\NovaMapMarkerField\MapMarker;
...

trait HasLocation
{
    public function getLocationFieldsAll()
    {
        return $this->merge([

            MapMarker::make('Posizione')
                ->searchProvider('openstreetmap')
                ->searchLabel('Inserire indirizzo/Coordinate')
                ->hideFromIndex(),
        ]);
    }
}

@mrigo
Copy link

mrigo commented May 31, 2021

Hi, any news about this?
I have the same problem...
Thanks!

@keizah7
Copy link

keizah7 commented Sep 9, 2021

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants