ProposalProyekIT2 / SISTEM-INFORMASI-GEOGRAFIS-LOKASI-RESTORAN-DI-KOTA-BANDUNG-SUB-MODUL-ANDROID-BASE-APPLICATION-

GNU Affero General Public License v3.0
1 stars 3 forks source link

Tile Overlays #3

Open awangga opened 8 years ago

awangga commented 8 years ago

Coba jalankan di android bisa ga? https://developers.google.com/maps/documentation/android-api/tileoverlay

tile diambil dari mapproxy

awangga commented 8 years ago

kode https://github.com/googlemaps/android-samples/blob/master/ApiDemos/app/src/main/java/com/example/mapdemo/TileOverlayDemoActivity.java

muh-kusnadi commented 8 years ago

Saya sudah coba pak Tile Overlaynya, yang di jadiin objek petanya itu bulan pak. private static final String MOON_MAP_URL_FORMAT = "http://mw1.google.com/mw-planetary/lunar/lunarmaps_v1/clem_bw/%d/%d/%d.jpg";

screenshot_2016-11-04-22-50-53-847_com example kusnadi myapplication

awangga commented 8 years ago

oke kita coba @kusnadi99 ganti variable moon url formatnya jadi : private static final String MOON_MAP_URL_FORMAT = "https://map.vas.web.id/wmts/agm/webmercator/%d/%d/%d.png";

muh-kusnadi commented 8 years ago

hitam pak.. hehe screenshot_2016-11-06-10-55-53-269_apps com kusnadi myrestaurantmapproxy

awangga commented 8 years ago

Coba variabelnya diubah reverseY pake y saja, trus coba utak ati bolak balik

muh-kusnadi commented 8 years ago

udah sya coba bolak balik sama custom variabel reversed Y masih tidak mau center pak. tapi mapsnya sudah keliatan ketika sya ubah formatnya seperti ini String s = String.format(Locale.US, MOON_MAP_URL_FORMAT, zoom, y, x); Hasilnya : screenshot_2016-11-10-07-41-05-608_apps com kusnadi myrestaurantmapproxy

muh-kusnadi commented 8 years ago

tambahan pak gambarnya jadi pecah ketika di zoom. Aplikasi udah di clear cache tapi msh bgtu juga pak.. screenshot_2016-11-10-07-46-10-529_apps com kusnadi myrestaurantmapproxy

awangga commented 8 years ago

oke @kusnadi99 cobain yang ini kus http://gis.stackexchange.com/questions/104325/how-to-use-custom-map-tiles-with-the-google-map-api-v2-for-android