Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18845

Here I have a working google map but can I get larger LargeMapControl

From "Tony" <tony.johansson@inport.com>
Newsgroups comp.lang.javascript
Subject Here I have a working google map but can I get larger LargeMapControl
Date 2013-03-12 10:41 +0100
Organization A noiseless patient Spider
Message-ID <khmt5l$nfc$1@dont-email.me> (permalink)

Show all headers | View raw


This line map.addControl(new google.maps.LargeMapControl());
create a control so you can zoom and move the map in any directions.

Now to my question is it possible to increase the size of this control 
because it will be used on a IPad ?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
xmlns:v="urn:schemas-microsoft-com:vml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  <script type="text/javascript" 
src="http://www.google.com/jsapi?key=xxx"></script>
  <script type="text/javascript">
    google.load("maps","2", {"other_params":"sensor=false"});
    function init() {
      map = new google.maps.Map2(document.getElementById("map"));
      var myLatLng = new google.maps.LatLng(54.124634, -3.237029);
      var myMarker = new google.maps.Marker(myLatLng, 
{"draggable":"true","title":"A place on earth"});
      map.setCenter(myLatLng,17);
      map.addControl(new google.maps.LargeMapControl());
      map.addControl(new google.maps.MapTypeControl());
      map.setMapType(G_SATELLITE_MAP);
      map.addOverlay(myMarker);
    };
    google.setOnLoadCallback(init);
  </script>
  <title>My first Google Map</title>
</head>
<body onunload="google.maps.Unload()">
  <div id="map" style="width: 800px; height: 800px; margin: auto; 
background-color: red">
    This is where the map will soon appear.
  </div>
</body>
</html>

//Tony 

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Here I have a working google map but can I get larger LargeMapControl "Tony" <tony.johansson@inport.com> - 2013-03-12 10:41 +0100
  Re: Here I have a working google map but can I get larger LargeMapControl Stefan Weiss <krewecherl@gmail.com> - 2013-03-12 11:26 +0100
    Re: Here I have a working google map but can I get larger LargeMapControl "Tony" <tony.johansson@inport.com> - 2013-03-12 11:34 +0100
      Re: Here I have a working google map but can I get larger LargeMapControl Stefan Weiss <krewecherl@gmail.com> - 2013-03-12 11:50 +0100

csiph-web