ios - Google Maps Places not working on Android -


i trying develop web page uses google maps api. so, i'm using library: http://maps.googleapis.com/maps/api/js?sensor=true&libraries=places

the page loads fine in uiwebview on ios: lat/long coordinates set correctly , can create custom markers based on maps search query run.

the same code not run in webview on android. map doesn't center around lat/long coordinates. shows map. can interact map (scroll, zoom, etc.), didn't ask permission use current location way did on ios.

is there need set in test app's manifest or in webview's settings work on android? have enabled javascript on webview. assumed javascript google maps api work in ios web view , android web view.

note not asking native solution problem. is, don't want kick google maps android app, , cannot use mapview because have control on web page. webpage getting loaded webviews on ios , android, , testing using simple android app activity has webview in layout.

use google maps in android easier think.
tutorial using https://developers.google.com/maps/documentation/android/start .
"pain" api key easy after that.
part of code "zooms" marked position:

latlng posll = new latlng(location.getlatitude(), location.getlongitude()); googlemap mmap; mmap = ((mapfragment) getfragmentmanager().findfragmentbyid(r.id.map)).getmap(); mmap.addmarker(new markeroptions().position(posll).title("eu!")); cameraupdate cameraupdate = cameraupdatefactory.newlatlngzoom(posll, 10); mmap.animatecamera(cameraupdate); 

regards,

marcello


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -