When i try to change the default center setting, the longitude automaticaly becomes NaN

Comments

zzhenekk’s picture

I have same issue.

I found simple solution. JS added 'NaN' parameter to default location when you clicked out of this field. So I just turn off js, add correct parameters and save settings. Then turned on scripts. Settings were saved correctly and map was showed. It is more easy then re-install module.

podarok’s picture

drupal_simply_amazing’s picture

zzhenekk nice work around, my gmap now is working again.

fyberoptik’s picture

Issue summary: View changes

Nice catch @zzhenekk

Badlapje’s picture

this issue is still a problem, finding this thread and implementing the solution was easy enough, but not a good way to fix it in the long run

arsalan2411’s picture

I was trying to show GMap on a node inside quick-tab. A specific quick tab was supposed to shows Google Map, but it was mis-behaving as:
1- Marker was not center aligned.
2- Map does not show up by default, rather it shows up upon page inspect.

I fixed it (sort of hard coded it) by getting appending quick-tab id to URL on click. It solved both of the above mentioned problems.

 jQuery('#quicktabs-tab-premium_auction_house-3').click(function() {
var separator = (window.location.href.indexOf("?")===-1)?"?":"&";
window.location.href = window.location.href + separator + "qt-premium_auction_house=3#qt-premium_auction_house";
});