Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GoogleMap, several bugs patched
I was working with Google Map plugin and found several bugs. I worked hard to find it and solve.

The bugs
[*] Working with several maps and anchors causes a mistake on saving that changes or deletes several anchors. (Javascript code bug)
[*] Some html elements are bad formatted
[+] Optimized search of elements in jquery
[+] Checks if Shadow elements are setted to prevent E-notice errors.

I have seen a lot of changes that can be done to improve performance and use. But nowadays i haven´t so much time.

Attached Files
.zip (Size: 27.71 KB / Downloads: 17)
Well, it didn't show a map on my site.
I had to change line 103:

You also forgot to include the translation for "NOMBRE_MENU".
But now it works for me.
By the way, can you tell me why my zoom controls are broken?
[Image: 19496814nh.jpg]
So long,
Ok, I fixed it myself.
The broken zoom controls came from my bootstrap css file, where <img> is set to max-width:100%.
In googlemap.php you use
$div ='<div class="gmapsxenon" id="gmap_'.$gmap_config[$i]['id'].'"></div>';
but I couldn't find this class. In bootstrap there is a class .google-maps, which sets the <img> max-width to "none".
So I changed class="gmapsxenon" to class="google-maps" and it's ok.
If you don't have a css where it is defined, and don't want to change the plugin file, you can use this in your main css file:
/*--------- Google Maps ----------*/
div[id^="gmap_"] img {
    max-width: none;
Or, if you want to do the changes I did, you copy this to your css file:
.google-maps img {
  max-width: none;
Maybe it's useful for anybody.

So long,
I would think google embed has its own css resets, perhaps they are missing.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Thank you very, very much!

Users browsing this thread: 1 Guest(s)