在Google Tile Server中平铺(x,y和z参数) [英] Tiling in Google Tile Server (x, y and z parameter)
问题描述
大家好
我正在使用Google Tile Server.我编写了一个WCF服务(C#),可使用http URL从Google服务器获取磁贴:- 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
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
推荐答案
检查 http://greatmaps.codeplex.com/
以下是您的链接
在Google地图在此处玩耍 [
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
这篇关于在Google Tile Server中平铺(x,y和z参数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!