How to Implement Google Map Tile Provider in android? -
i working on custom map app , want use google map tiles background ? there 1 class tileprovider
in api don't know how initialize every time try goes ?
tileprovider tileprovider=new tileprovider() { @override public tile gettile(int i, int i2, int i3) { return null; //to change body of implemented methods use file | settings | file templates. } };
how override gettile function tiles google map server? example appreciated ?i know gettile
function need x,y , zoom value return tile.
so quick answer can google map tiles following url:
http://mt1.google.com/vt/lyrs={t}&x={x}&y={y}&z={z}
where {t} type of map (satellite, road, hybrid, etc) , other attributes specifying coordinates , zoom level.
the possible values {t} follows:
- default - m
- roads - h
- roads simplified - r
- satellite - s
- satellite hybrid - y
- terrain - t
- terrain hybrid - p
that being said want make sure you're doing not violation of terms & services. google allow cache tiles provided doing in order improve performance , delete tiles @ least every 30 days, , don't pull down tiles in attempt make own mapping service.
Comments
Post a Comment