Code Monkey home page Code Monkey logo

Comments (8)

mikebronner avatar mikebronner commented on May 29, 2024

Hi @recepgums, could you be more specific as to what "is not working"? We haven't made any updates, as you can so, so it is likely either an issue with OpenStreetMaps, or a configuration change in your app.

If you can provide any stack trace or other error logs, that would help identify what is going on.

from nova-map-marker-field.

recepgums avatar recepgums commented on May 29, 2024

Hi @recepgums, could you be more specific as to what "is not working"? We haven't made any updates, as you can so, so it is likely either an issue with OpenStreetMaps, or a configuration change in your app.

If you can provide any stack trace or other error logs, that would help identify what is going on.

nova-map-marker-field:1 Uncaught (in promise) Error: Bounds are not valid.
    at e.fitBounds (nova-map-marker-field:1)
    at NewClass.centerMap (nova-map-marker-field:1)
    at NewClass.showResult (nova-map-marker-field:1)
    at NewClass.<anonymous> (nova-map-marker-field:1)
    at eval (eval at <anonymous> (nova-map-marker-field:1), <anonymous>:1:2976)

I got this error on console.

I mean after i filled textbox and pressed enter, i couldn't see any moving on map. Marker is stayin same possition. There may be an error with OpenStreetMaps as you say

from nova-map-marker-field.

parelius avatar parelius commented on May 29, 2024

I have the same issue. I did not declare the search provider explicitly.
I get search results but when I select an entry from the suggestions, nothing happens.

I can confirm that it was working some time ago but now it isn't.

from nova-map-marker-field.

mikebronner avatar mikebronner commented on May 29, 2024

@parelius Thanks for adding to the conversation. :) Could you provide your Nova field declaration as well? That will help with troubleshooting.

from nova-map-marker-field.

parelius avatar parelius commented on May 29, 2024

Hi Mike, sure I can:

use GeneaLabs\NovaMapMarkerField\MapMarker;
use Eminiarts\Tabs\Tabs;

public function fields(Request $request)
{
	return [
	
		// some more fields...
	
		(new Tabs('Info', [
		
			__('photos.tab-content') => [
			
				// some more fields...
			
				MapMarker::make(__('photos.coordinates'))
				                    ->latitude('exif_latitude')
				                    ->longitude('exif_longitude')
				                    ->defaultLatitude(46.951082)
				                    ->defaultLongitude(7.438632)
				                    ->required()
				                    ->hideFromIndex(),
			
			],
			
			// some more tabs...
		
		])),
	
	];
}

As you see, I'm using Eminiarts\Tabs\Tabs. I don't see a difference if using MapMarker inside Tabs or not. The issue remains the same.
MapMarker used to work, even within Tabs, some time ago.

I'm currently on Laravel framework 7.9.2 and Nova 3.5.0, but I noticed this issue earlier with Laravel 7.6.2 and Nova 3.3.2.

Console Log is the same as reported by @recepgums

nova-map-marker-field:1 Uncaught (in promise) Error: Bounds are not valid.
    at e.fitBounds (nova-map-marker-field:1)
    at e.centerMap (nova-map-marker-field:1)
    at e.showResult (nova-map-marker-field:1)
    at e.<anonymous> (nova-map-marker-field:1)
    at eval (eval at <anonymous> (nova-map-marker-field:1), <anonymous>:3:2975)

from nova-map-marker-field.

mikebronner avatar mikebronner commented on May 29, 2024

@parelius Awesome, thanks for the update .... I will take a look soon, hopefully over the next few days.

from nova-map-marker-field.

parelius avatar parelius commented on May 29, 2024

Any news here?

from nova-map-marker-field.

gregoriohc avatar gregoriohc commented on May 29, 2024

Same problem here... I guess it is related with this issue on the "leaflet-geosearch" library:
smeijer/leaflet-geosearch#167

from nova-map-marker-field.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.