iPhone - 图像叠加MapKit框架? [英] iPhone - Image overlay MapKit framework?

查看:87
本文介绍了iPhone - 图像叠加MapKit框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在iOS4上看到你现在可以在谷歌地图上平铺图像(一直在查看来自苹果的TileMap示例)。这很棒,因为这是我想要做的,但从我所看到的我需要知道图像的GEO参考,所以我可以用适当的缩放级别等光栅图像。我有一个艺术家的形象,这是一个特定区域的地图,我想在谷歌地图上叠加这个图像。



我在这里遗漏了一些东西,但这可以用非标准地图完成并具有不同的缩放级别吗?



<我需要使用谷歌地图的主要原因是因为GPS功能,所以用户将知道他们目前在地图上的位置。

解决方案

地理配准是指将图像固定到世界的方式。这是一个棘手的过程,但是一旦你深入研究它就不会太难。



你已经找到了TileMap示例代码 - 这是第一步。



接下来,查看MapTiler.org。你会在那里找到链接和一些二进制文件,你可以用它们将图像处理成地理参考图块。



如果你不知道图像的纬度/经度坐标,您可以使用Google地球以交互方式将图像叠加到地图上,然后将坐标复制出去。



祝你好运!


I can see with iOS4 you can now tile an image on google maps (Been looking at the TileMap example from apple). This is great as this is what I want to do, but from what I can see I need to know the GEO reference of the image so I can raster the images with the appropriate zoom levels, etc. What I have is an artist image, which is a map of a specific area and I want to overlay this image on google maps.

Am I missing something here, but can this be done with a none standard map and having different zoom levels?

The main reason why I need to use google maps is because of the GPS functionality, so the user will know where they currently are on the map.

解决方案

Georeferencing is how you "pin" your image to the world. It is a tricky process, but not too hard once you dig into it.

You've already found the TileMap example code - that is the first step.

Next, check out MapTiler.org. There you will find links and some binaries that you can use to process your image into georeferenced tiles.

If you don't know the lat/long coordinates for your image, you can use Google Earth to interactively overlay the image onto the map, and then copy the coordinates out.

Good luck!

这篇关于iPhone - 图像叠加MapKit框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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