本文是小编为大家收集整理的关于在谷歌磁贴服务器中贴图(x、y和z参数)。的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
大家好
我正在使用 Google Tile Server.我编写了一个 WCF 服务 (C#),它使用 http URL 从 Google 服务器获取图块:- http://mt1.google.com/vt/lyrs=m@129&hl=en&x=1&y=0&z=1&s=伽利略
如您所知,Google Tile 在其 URL 中需要三个可变参数 x、y 和 z 来提供一个 tile.
其他坐标可以在这里看到.http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
我非常成功地一一获取 Google Tile(地图)(意味着放置不同的 x、y 和 z 值).
现在来到现实世界的场景,我尝试开发一个 WinForm (C#) 应用程序来显示这些图块.我能够显示一对一的瓷砖.但我的问题是..
1.
如何提供完整的地图集(不同的瓦片拼接在一起)?我知道,我可以使用不同的参数提供对 Google Tile Server 的多次调用,但我需要知道 x、y 和z在不同的条件下和那个连续的关系
2.
是否有任何计算、公式或映射将屏幕坐标链接到 Google Tile Server 坐标(表示 x、y 和 z 值)?
3.
我必须在拖动和双击时提供平滑的缩放和平移.. 与 Google 提供的一样.
4.
我最关心的是 Google 的 x、y、z 和我的屏幕坐标之间的关系.
很抱歉发了很长的帖子,但事情很严重.
任何帮助(或样本)将不胜感激.谢谢
问候,
Shilpa Silk
推荐答案
检查 http://greatmaps.codeplex.com/
这里是你的链接
玩谷歌地图这里在游乐场[^]
有很多例子,你可以自己改变和测试.
谢谢
--RA
问题描述
Hi All
I am working on Google Tile Server. I have written one WCF Service (C#) which fetches tile from Google server using http URL :- http://mt1.google.com/vt/lyrs=m@129&hl=en&x=1&y=0&z=1&s=Galileo
As you know, Google Tile requires three variable parameters x, y and z in it''s URL to provide a tile.
Other co-ordinates can be seen here. http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
I am very much successful in fetching the Google Tile (Map) one by one (means putting different values of x, y and z).
Now coming to real world scenario, I tried developing one WinForm (C#) application to display those tiles. I am able to display one-one tiles. But my problem is..
1.
How to provide complete set of maps (different tiles stitched together)? I know, I can provide multiple calls to Google Tile Server with different parameters but I needed to know what could be the appropriate value of x, y & z in different conditions and continuous relation to that
2.
Is there any calculation, formula or mapping which links screen coordinate to Google Tile Server coordinates (means x, y & z values)?
3.
I have to provide smooth zooming and panning on dragging and double click .. same as Google provides.
4.
My basic concern is relation between Google''s x, y, z and my screen coordinates.
Sorry for a long post but matter is seriously serious.
Any help (or samples) will be highly appreciated. Thanks
Regards,
Shilpa Silk
推荐答案
check http://greatmaps.codeplex.com/
Here is the link for you
Play with google maps Here on Play ground[^]
There are many examples, you can change and test there itself.
Thanks
--RA