Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GoogleMap, several bugs patched
#3
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
Code:
$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:
Code:
/*--------- 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:
Code:
.google-maps img {
  max-width: none;
}
Maybe it's useful for anybody.

So long,
moped
Reply


Messages In This Thread
GoogleMap, several bugs patched - by Prescol - 2014-09-03, 19:10:48
RE: GoogleMap, several bugs patched - by moped - 2014-09-12, 20:15:35
RE: GoogleMap, several bugs patched - by moped - 2014-09-15, 22:52:11
RE: GoogleMap, several bugs patched - by shawn_a - 2014-09-15, 22:58:24
RE: GoogleMap, several bugs patched - by herbie - 2017-01-03, 02:56:35



Users browsing this thread: 1 Guest(s)