简体   繁体   English

OpenLayers 3-Zoomify-Tiles-入门

[英]OpenLayers 3 - Zoomify - Tiles - Getting started

I am new to OpenLayers and want to switch from Google Maps API. 我是OpenLayers的新手,想从Google Maps API切换。

Now I am trying to figure out how to place a big image into OpenLayers like I can do with the Google Maps API: https://developers.google.com/maps/documentation/javascript/examples/maptype-image 现在,我试图弄清楚如何像使用Google Maps API一样将大图像放入OpenLayers: https : //developers.google.com/maps/documentation/javascript/examples/maptype-image

I guess the dependance with OpenLayers is Zoomify, right? 我猜想OpenLayers的依赖是Zoomify,对吗? http://openlayers.org/en/v3.0.0/examples/zoomify.html http://openlayers.org/en/v3.0.0/examples/zoomify.html

Now I can't find any good How To or Get Started on Zoomify. 现在,在Zoomify上找不到任何好的“操作方法或入门”。

  • is there a good introduction on OpenLayers and Zoomify which I should know? 我应该知道有关OpenLayers和Zoomify的很好的介绍吗?
  • how do I need to slice the image into tiles? 我如何将图像切成小块?
  • can I name the tiles like I do for Google Maps? 可以像对Google Maps一样命名图块吗?
  • I downloaded OL3 but the examples are not working. 我下载了OL3,但示例不起作用。 Do I need to compile something? 我需要编译一些东西吗?
  • is there a good introduction on OpenLayers and Zoomify which I should know? 我应该知道有关OpenLayers和Zoomify的很好的介绍吗?

The OpenLayers 3 Quickstart and the OpenLayers 3 workshop OpenLayers 3快速入门OpenLayers 3研讨会

  • how do I need to slice the image into tiles? 我如何将图像切成小块?

Yes, there are various possibilities using PHP, Python and Ruby. 是的,使用PHP,Python和Ruby有多种可能。 See this blog post for PHP and Python links and Ruby at this GitHub repo . 在此GitHub存储库中,请参阅有关PHP和Python链接以及Ruby的博客文章

  • can I name the tiles like I do for Google Maps? 可以像对Google Maps一样命名图块吗?

No, Google Maps use specific tiles splitting and Zoomify don't use the same. 不,Google Maps使用特定的图块分割,而Zoomify则不使用相同的图块分割。

  • I downloaded OL3 but the examples are not working. 我下载了OL3,但示例不起作用。 Do I need to compile something? 我需要编译一些东西吗?

No, just go to https://github.com/openlayers/ol3/releases/tag/v3.0.0 . 不,只需转到https://github.com/openlayers/ol3/releases/tag/v3.0.0即可 At the bottom, click on the v3.0.0.zip download link, unzip it. 在底部,单击v3.0.0.zip下载链接,将其解压缩。 Put the directory on any webserver and open the examples directory and you will see all demos working. 将目录放在任何Web服务器上,然后打开examples目录,您将看到所有演示都在工作。

You can use vips to generate Zoomify tile pyramids. 您可以使用vips生成Zoomify瓷砖金字塔。 There's a post on the vips blog explaining how to use the tool. vips博客上一篇帖子介绍了如何使用该工具。 For example: 例如:

vips dzsave myhugefile.tif output_directory --layout zoomify

will create a tile pyramid in the directory output_directory . 将在目录output_directory中创建一个平铺金字塔。

The vips pyramid creator is very fast and can build pyramids of images of any size using only a little memory. VIP金字塔创建者的速度非常快,仅需很少的内存即可构建任何大小的图像金字塔。

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

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