Skip to content

Commit d3332d2

Browse files
committed
Merge pull request #16 from klokoy/master
Fixed problem with twitter bootstrap affecting google maps.
2 parents 375e8c9 + 725c2b4 commit d3332d2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@ <h1>Marker</h1>
279279
<a class="btn btn-primary" ng-click="setMarkerPosition(currentMarker, currentMarkerLat, currentMarkerLng)">Set Position</a>
280280
</div>
281281
</div>
282-
<div ui-map="myMap" class="span8 map"
282+
283+
<!--Giving the div an id="map_canvas" fix problems with twitter bootstrap affecting
284+
google maps-->
285+
<div id="map_canvas" ui-map="myMap" class="span8 map"
283286
ui-event="{'map-click': 'addMarker($event)', 'map-zoom_changed': 'setZoomMessage(myMap.getZoom())' }"
284287
ui-options="mapOptions">
285288
</div>
@@ -308,7 +311,9 @@ <h3>How?</h3>
308311
&lt;a ng-click=&quot;setMarkerPosition(currentMarker, currentMarkerLat, currentMarkerLng)&quot;&gt;Set Position&lt;/a&gt;
309312
&lt;/div&gt;
310313

311-
&lt;div ui-map=&quot;myMap&quot; class=&quot;map&quot;
314+
&lt;!-- Giving the div an id="map_canvas" fix problems with twitter bootstrap affecting
315+
google maps --&gt;
316+
&lt;div id=&quot;map_canvas&quot; ui-map=&quot;myMap&quot; class=&quot;map&quot;
312317
ui-event=&quot;{&#x27;map-click&#x27;: &#x27;addMarker($event)&#x27;, &#x27;map-zoom_changed&#x27;: &#x27;setZoomMessage(myMap.getZoom())&#x27; }&quot;
313318
ui-options=&quot;mapOptions&quot;&gt;
314319
&lt;/div&gt;

0 commit comments

Comments
 (0)