放大图像,显示更多细节
我正在开发一个小项目,想要实现某种“谷歌地图”缩放。我的意思是我想显示图像,并让用户能够放大图片的一部分。
第一张图片应显示机场的整体视图,包括航站楼和登机口等。但是,当放大终端时,它应该显示更多有关公交车站、出租车站、信息、咖啡馆等位置的详细信息。它不应该是一张地图。
我在谷歌上搜索了一下,但找不到任何东西。谁有什么建议吗?类似内容的教程的首选链接?
谨致问候,
保罗·皮伦
I am working on a little project and want to implement some sort of "google maps" zooming. What I mean with that is that I want to show an image, and let the user be able to zoom in into a bit of the picture.
The first image should show an overall view of an airport, with its terminals and gates ect. But when zooming in on a terminal it should show more details on where bus stops, taxi stops, info, café's ect are located. It should NOT be a map.
I have searched Google a bit, but couldn't really find anything. Anyone who has any suggestions? Preferable links to tutorials for similar things?
Best regards,
Paul Peelen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实现此目的的标准方法是使用
UIScrollView
并在UIScrollView
中添加带有CATiledLayer
层的自定义UIView
。您将通过绘制(设置内容)到内部CATiledLayer
层来渲染图像。请查看 PhotoScroller 示例项目。The standard way to implement this is by using a
UIScrollView
and within theUIScrollView
add a customUIView
withCATiledLayer
layers. You will render the image by drawing (setting content) to the innerCATiledLayer
layers. Look at the PhotoScroller sample project.