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

Path csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail
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 Tue, 12 Mar 2013 10:41:42 +0100
Organization A noiseless patient Spider
Lines 1
Message-ID <khmt5l$nfc$1@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding 7bit
Injection-Date Tue, 12 Mar 2013 09:40:05 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="04290fff4557273ca84c3ad616751e0b"; logging-data="24044"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+neUi3IghQxDzhsPR7dsq86/YsTgjgVKE="
X-MimeOLE Produced By Microsoft MimeOLE V15.4.3555.308
X-Newsreader Microsoft Windows Live Mail 15.4.3555.308
Importance Normal
Cancel-Lock sha1:GFCkaDCCT6hy53ePIyj+++E2eKQ=
X-Priority 3
X-MSMail-Priority Normal
Xref csiph.com comp.lang.javascript:18845

Show key headers only | 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