建立使用Android的全球定位系统和自定义地图的应用程序 [英] Building an app that uses android GPS and custom map

查看:89
本文介绍了建立使用Android的全球定位系统和自定义地图的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能创建一个地图应用程序说游乐园,所以你可以看到一个自定义地图,显示我上的自定义地图的当前位置。

Is it possible to create a map application for say a amusement park so you can see a custom map that shows my current location on that custom map.

我是,至少在下面我的逻辑看球?

Am I at least in the ballpark with my logic below?

使用图形页面来创建一个新的地图类

Use mapView to create a new map class

使用 ItemizedOverlay 来覆盖我的自定义地图

Use ItemizedOverlay to overlay my custom map

使用的GeoPoint 来上正确定位我的自定义地图覆盖我的图形页面

Use GeoPoint to position my custom map overlay correctly on my mapView

使用 LocationManager 来获取用户的位置,并添加一个市场当前的MapView

Use LocationManager to get users position and add a market to the current mapView

任何意见或想法将AP preciated。谢谢!

推荐答案

您可以覆盖上的MapView的自定义图像。我发现,你可以在此使用 maptiler ,我发现了一个建议的post

You could overlay the custom image on the mapview. I found that you could use maptiler which I found in a suggestion in this post.

确切的回应是:

有几种不同的方法来做到这一点。一种方法是创建一个   GTileLayer对象和实施给getTileUrl()返回的URL   指着你的瓷砖。

There are a couple different ways to do it. One way is to create a GTileLayer object and implement the getTileURL() to return the URL pointing to your tiles.

但是,首先你需要一个已正确切瓷砖格式的图像。   对于初学者来说,我建议你看看MapTiler:    http://www.maptiler.org/ 这将削减图像,为您和生成   GoogleMap的与覆盖。

But first you'll need an image that's cut properly in the tile format. For starters, I'd recommend you look at MapTiler: http://www.maptiler.org/ It will cut images for you AND generate a GoogleMap with the overlay.

这篇关于建立使用Android的全球定位系统和自定义地图的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆