dotswan / filament-map-picker

Map Picker is a Filament custom field designed to simplify the process of choosing a location on a map and obtaining its geo-coordinates.
MIT License
32 stars 10 forks source link

Maps not working at first load #19

Closed ivankrister closed 1 month ago

ivankrister commented 1 month ago

At first visit on page the maps not working but after refresh its maps load and work

mohaphez commented 1 month ago

Hi @ivankrister

Are you use spa mode ?
Have any errors in console log ?

you just can't see map layers ? or can't see map section box(buttons,..) in first load even ?

ivankrister commented 1 month ago

Im just using the default filament not SPA mode

I dont see some sort of error related to the maps when its fail to load or not working but if its load i see an error in console

NOT WORKING in first load of page image

WORKING AFTER REFRESH

image

by the way how to set a default lat lng in the maps?

SWEET1S commented 1 month ago
mohaphez commented 1 month ago

Hi everybody

I would be grateful if you could send me the answers to these few questions

What is the package version? What is the filament version? Have you activated the spa mode of the panel?

also if you attach some codes will be great too.

SWEET1S commented 1 month ago

Hello, I found the problem. The height of map need to be lower then 100vh. By default in documentation wroten with min-height: 150vh

mohaphez commented 1 month ago

Hi all ,

After merging #21 and releasing the new version, you should no longer encounter any errors when loading the map. Please let us know if you experience any issues or errors.

Thank you.