mirror of
https://github.com/mapgears/ol3-google-maps.git
synced 2026-01-18 15:06:59 +00:00
23 lines
778 B
HTML
23 lines
778 B
HTML
---
|
|
layout: example.html
|
|
title: Overview map
|
|
shortdesc: Example showing a Google Maps layer being used in an overview control.
|
|
docs: >
|
|
<p>
|
|
This example shows a Google Maps layer being used in an overview
|
|
control.
|
|
</p>
|
|
<p>
|
|
Since the overview control contains a different map instance, we
|
|
also need an different olGM instance for it.
|
|
</p>
|
|
<p>
|
|
There are two google maps layers visible at the same time, we need
|
|
to load them in sequence. As soon as the google maps instance in the
|
|
overview control is done loading, we activate the main one. When
|
|
using only one google maps layer, no delay is necessary.
|
|
</p>
|
|
---
|
|
<div id="map" class="map"></div>
|
|
<button id="toggle" title="Toggle between OL and GMaps">Toggle between OL and GMaps</button>
|