Search box not showing
smartie19889 opened this issue · comments
There seems to be an issue with Laravel Nova v3.30.0 where the search box isn't showing
Can you provide more information? It works fine for me in Nova 3.30.0
Same issue here: Nova 3.29
LeafletField::make(__('nova_fields.reachability.fields.map')) ->latitudeField('latitude') ->longitudeField('longitude') ->draggable() ->defaultCoordinates(51.2085526, 3.226772) ->allowDefaultCoordinates() ->errorMessage(__('Please select a valid location')) ->searchLabel(__('Enter address')) ->hideFromIndex(),
Also the default coordinates are not working, it just places me in the middle of the sea around Africa.
Sorry for the late reply. No - not getting any console errors.
The .leaflet-control-geosearch form input is set to display:none
That should be getting overwritten with the following css:
.leaflet-geosearch-bar form {
position: relative;
top: 0;
left: 0;
display: block;
border-radius: 4px;
}
I tested it in both Chrome and Firefox. Which browser are you using?
Since I can't reproduce this, it would be really helpful if you could provide a minimal reproduceable project setup 🙏