Simplify the google-map example
By creating the ol3 map div in the html, there is no need any more to wait for the custom GMaps control to append the ol3 map to its parent. This also fixes an issue that sometimes prevented the ol3 map to appear, when the GMaps tiles were loaded before the custom control's div was appended to its parent.
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
div.ol-logo {
|
||||
left: 65px;
|
||||
}
|
||||
div.fill {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
<script src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script>
|
||||
<title>Google Maps integration example</title>
|
||||
@@ -31,7 +35,10 @@
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<div id="map" class="map"></div>
|
||||
<div id="map" class="map">
|
||||
<div id="gmap" class="fill"></div>
|
||||
<div id="olmap" class="fill"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user