0

I am using this http://rjshade.github.com/gmaps-autocomplete/ to plugin a map in my website.

I use twitter bootstrap, the modal that the map is viewed in causes the pin to looks buggy (with a shadow and very tiny) and inaccurate when moving it, as well as on loading the pin on the map, the pin isn't centered in the view. once I remove the bootstrap.min.css all these bugs are fixed.

Any ideas how to fix these bugs while having the bootstrap.min.css ?? Thanks alot in advance

Map on load -- enter image description here

Pin -- enter image description here

Salma Hamed
  • 2,000
  • 4
  • 26
  • 45

2 Answers2

0

I think the answer might be to add this CSS:

#mapCanvas img {
    max-width: none;
}

More here:

Twitter Bootstrap CSS affecting Google Maps

Community
  • 1
  • 1
Billy Moat
  • 20,792
  • 7
  • 45
  • 37
0

I was able to solve the pin problem by changing the id of the map canvas from gmaps-canvas to map_canvas in all the files.

But the problem of loading the map centered is still not fixed.

Salma Hamed
  • 2,000
  • 4
  • 26
  • 45