PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 0ms app.codeStats 0ms

/puppet/api/menu_map_type_control.html

http://gmaps-api-issues.googlecode.com/
HTML | 25 lines | 21 code | 2 blank | 2 comment | 0 complexity | dfcf3df85e7e4edf45f9674432c2cf5e MD5 | raw file
 1<!-- Copyright 2009 Google Inc. All Rights Reserved. -->
 2<!-- License: http://www.apache.org/licenses/LICENSE-2.0 -->
 3
 4<script src=../puppet.js></script>
 5<script>
 6map.api.load();
 7
 8/** Test GMenuMapTypeControl. */
 9window.onload = function() {
10  var changed = false;
11  run(map.api.init, -33.95, 151.2, 10);
12  run(function() {
13    map.api.map.removeMapType(G_HYBRID_MAP);
14    map.api.map.addControl(new GMenuMapTypeControl());
15    GEvent.addListener(map.api.map, 'maptypechanged', function() {
16      changed = true;
17    });
18  });
19  run([shown, mouse], map.map + title('Change map style'), 'mousedown');
20  run(find, map.controls.satelliteTiles);
21  run(absent, map.controls.hybridTiles);
22  run(mouse, map.controls.satelliteTiles, 'mouseup');
23  run(wait, function() { return changed; });
24};
25</script>