简体   繁体   English

如何在谷歌地图样式上加载巨大的图像?

[英]how to load a huge image on the style of google maps?

i would load a huge image in my web page (8Mpx x 5Mpx).我会在我的 web 页面(8Mpx x 5Mpx)中加载一个巨大的图像。 I thought of creating a simple mechanism on the style of google maps.. But, honestly, I do not have very clear ideas on how to implement it.. any advice on how to structure it?我想在谷歌地图的风格上创建一个简单的机制。但是,老实说,我对如何实现它没有非常清晰的想法。关于如何构建它的任何建议?

in particular, I have many doubts about how to handle the drag with the asynchronous loading of the image to vary the portion of the images displayed特别是,我对如何处理异步加载图像的拖动以改变显示的图像部分有很多疑问

Thank you in advance for your help: )预先感谢您的帮助: )

An easy answer would to be use Google Maps.一个简单的答案是使用谷歌地图。

It's a rather advanced topic, but it shouldn't be any harder than doing it by hand.这是一个相当高级的话题,但它不应该比手工更难。

Here is more information这里有更多信息

I realize this is an old question, but I'd like to suggest http://leafletjs.com/ .我意识到这是一个老问题,但我想建议http://leafletjs.com/

I can only think of some sort of tiles.我只能想到某种瓷砖。 You break down the image in several parts ( tiles ).您将图像分解为几个部分(图块)。 Then you only draw the one that are in your viewport.然后,您只绘制视口中的那个。

I've used Zoomify's products in the past to accomplish this.我过去曾使用 Zoomify 的产品来实现这一点。 I work on a team that manages a few datacenters, so we have some gigantic floor maps (drawn up in CAD, exported as a huge image).我在一个管理几个数据中心的团队工作,所以我们有一些巨大的楼层地图(用 CAD 绘制,导出为巨大的图像)。 I take those maps and convert them to what I consider a "Google style map" using Zoomify Express (free).我使用 Zoomify Express(免费)将这些地图转换为我认为的“谷歌风格地图”。

More info here: http://www.zoomify.com/express.htm更多信息在这里: http://www.zoomify.com/express.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM