[Google Maps API v3] Maps on Android
I have been developing an application using the Google Maps Javascript Api v3 for over a year now. I am now faced with the need to produce an android device version. So I started to look at the Maps Api in the Android SDK - it is almost empty. - no directions service - no region biasing for displays - no geocoding What is the right way of producing map applications for android devices which match the same powerful web based apps we are able to produce now - without simply hosting a mobile specialised web site ? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/ZffTyvLWQ98J. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Maps on Android
Can use the webservices directly via a HTTP interface https://developers.google.com/maps/documentation/webservices/ (that caters for directions and geocoding. No idea what region biasing for displays means) On Tue, Mar 27, 2012 at 5:40 PM, sgiddings mr.s.giddi...@gmail.com wrote: I have been developing an application using the Google Maps Javascript Api v3 for over a year now. I am now faced with the need to produce an android device version. So I started to look at the Maps Api in the Android SDK - it is almost empty. - no directions service - no region biasing for displays - no geocoding What is the right way of producing map applications for android devices which match the same powerful web based apps we are able to produce now - without simply hosting a mobile specialised web site ? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/ZffTyvLWQ98J. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
Re: [Google Maps API v3] Maps on Android
Thank you for your reply Barry, However, how can I reproduce other aspects such as line, polyline and polygon drawing based on lat/lng coordonnates ? Are there any full examples for creating real world mapping applications in the same manner as with the v3 javascript api ? -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/QaDXVpc2ArQJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] Maps in Android with HTML5
I'm trying to make an application using google maps with HTML5. The idea is then to be a native application for Android (later of iPhone), encapsulated in a WebView. The problem I have is I do not read maps API from Android device. If I test the page from Firefox works fine, but to which I put into the Android is no way that it works. After many trials I have something like this: Activity code: package com.sts; import android.app.Activity; import android.os.Bundle; import android.webkit.WebChromeClient; import android.webkit.WebView; public class PruebaActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); WebView webView = (WebView)findViewById(R.id.webView); webView.getSettings().setJavaScriptEnabled(true); //webView.getSettings().setGeolocationEnabled(true); webView.setWebChromeClient(new WebChromeClient()); webView.loadUrl(file:///android_asset/www/index.html); } } index.html (In the code hit the API call is commented that the asynchronous call, but I've tried to call uncommented.) html head meta name=viewport content=initial-scale=1.0, user- scalable=no / script type=text/javascript src=jquery-1.5.min.js /script script type=text/javascript src=map.js /script !--script type=text/javascript src=http://maps.google.com/maps/ api/js?sensor=true/script-- /head body div id=map_canvas style=width: 100%; height: 100% /div button onclick=LoadMap()Hola/button /body /html And map.js: var map = null; function LoadMap() { alert(Entra); var mapLayout = document.getElementById(map_canvas); map = new google.maps.Map(mapLayout, { mapTypeId: google.maps.MapTypeId.ROADMAP, zoom: 18 }); if (navigator.geolocation) { alert(Si); navigator.geolocation.getCurrentPosition(function(position) { map.setCenter(new google.maps.LatLng(position.coords.latitude, position.coords.longitude)); }); } else { alert(No); map.setCenter(new google.maps.LatLng(37.4419, -122.1419)); } } $(document).ready(function(e) { var script = document.createElement(script); script.type = text/javascript; script.src = http://maps.google.com/maps/api/js? sensor=truecallback=LoadMap; document.body.appendChild(script); }); This works in Firefox, but since Android never gets to call LoadMap () If you reference the API from the HTML and the document.ready LoadMap call (), tells me: ReferenceError: Can not find variable: google at file: / / / android_asset / www / map.js: 8 Any idea? Thank's. -- You received this message because you are subscribed to the Google Groups Google Maps JavaScript API v3 group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.