{"id":638,"date":"2010-12-27T16:39:37","date_gmt":"2010-12-27T08:39:37","guid":{"rendered":"http:\/\/blog.newnaw.com\/?p=638"},"modified":"2010-12-27T16:39:37","modified_gmt":"2010-12-27T08:39:37","slug":"arcgis%e5%ae%a2%e6%88%b7%e7%ab%afapi%e4%b8%ad%e5%8f%a6%e4%b8%80%e7%a7%8d%e5%9b%be%e5%b1%82%e7%b1%bb%e5%9e%8b%e7%9a%84%e6%8e%a2%e8%ae%a8%ef%bc%9adynamictilemapservicelayer","status":"publish","type":"post","link":"https:\/\/blog.newnaw.com\/?p=638","title":{"rendered":"ArcGIS\u5ba2\u6237\u7aefAPI\u4e2d\u53e6\u4e00\u79cd\u56fe\u5c42\u7c7b\u578b\u7684\u63a2\u8ba8\uff1aDynamicTileMapServiceLayer"},"content":{"rendered":"<p>&#160;&#160;&#160; ArcGIS\u5ba2\u6237\u7aefAPI\uff08Javascript\/Flex\/Silverlight\uff09\u4e2d\uff0c\u6211\u4eec\u6700\u5e38\u6253\u4ea4\u9053\u7684\u662fArcGISDynamicMapServiceLayer\u548cArcGISTiledMapServiceLayer\u4e24\u4e2a\u7c7b\uff0c\u57fa\u672c\u6bcf\u4e2a\u5730\u56fe\u4e2d\u90fd\u8981\u7528\u5230\u3002\u5b83\u4eec\u90fd\u53ef\u4ee5\u76f4\u63a5\u5c06\u670d\u52a1\u5668\u7aef\u53d1\u5e03\u7684\u5730\u56fe\u670d\u52a1\uff08MapService\uff09\u4f5c\u4e3a\u56fe\u5c42\uff0c\u52a0\u8f7d\u5230\u5ba2\u6237\u7aef\u7a0b\u5e8f\u4e2d\uff0c\u5206\u522b\u5bf9\u5e94\u4e86\u52a8\u6001\u5730\u56fe\u670d\u52a1\u548c\u7f13\u5b58\u5730\u56fe\u670d\u52a1\u3002\u8fd9\u4e24\u79cd\u56fe\u5c42\u7c7b\u578b\u5404\u6709\u4f18\u7f3a\u70b9\u3002    <br \/>&#160;&#160;&#160; ArcGISDynamicMapServiceLayer\uff08\u52a8\u6001\u5730\u56fe\u670d\u52a1\uff09\u901a\u5e38\u7528\u4e8e\u5b9e\u65f6\u663e\u793a\u7ecf\u5e38\u53d8\u5316\u7684\u6570\u636e\uff0c\u652f\u6301\u63a7\u5236\u5355\u4e2a\u56fe\u5c42\u53ef\u89c1\u6027\uff0c\u53ef\u52a8\u6001\u6295\u5f71\u3002\u4f46\u7f3a\u70b9\u662f\u663e\u793a\u6548\u679c\u8f83\u5dee\uff0c\u6574\u4e2a\u670d\u52a1\u51fa\u56fe\u8f83\u6162\uff1bArcGISTiledMapServiceLayer\u53ef\u4ee5\u76f4\u63a5\u52a0\u8f7d\u670d\u52a1\u5668\u7aef\u7684\u7f13\u5b58\u5730\u56fe\u670d\u52a1\uff0c\u663e\u793a\u6548\u679c\u597d\uff0c\u901f\u5ea6\u5feb\uff0c\u4f46\u5b83\u7684\u7f3a\u70b9\u6b63\u662fArcGISDynamicMapServiceLayer\u7684\u4f18\u70b9\uff0c\u5373\u4e0d\u652f\u6301\u52a8\u6001\u6295\u5f71\uff0c\u4e0d\u80fd\u63a7\u5236\u56fe\u5c42\u53ef\u89c1\u6027\uff0c\u670d\u52a1\u5668\u7aef\u9700\u8981\u63d0\u524d\u751f\u6210\u7f13\u5b58\u7b49\u3002     <br \/>&#160;&#160;&#160; \u8fd9\u91cc\u5c1d\u8bd5\u81ea\u5df1\u6765\u5728\u5ba2\u6237\u7aef\u5c01\u88c5\u4e00\u4e2a\u7c7b\uff0c\u521b\u5efa\u4e00\u79cd\u65b0\u7684\u5ba2\u6237\u7aef\u56fe\u5c42\u7c7b\u578b\u3002\u5b83\u80fd\u591f\u7efc\u5408\u4ee5\u4e0a\u4e24\u4e2a\u56fe\u5c42\u7684\u4f18\u70b9\uff0c\u800c\u514b\u670d\u5176\u5404\u81ea\u7684\u7f3a\u70b9\u3002\u5927\u81f4\u603b\u7ed3\u4e00\u4e0b\u6211\u4eec\u8981\u8fbe\u5230\u7684\u76ee\u7684\uff1a<\/p>\n<div align=\"center\">\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td width=\"188\">\n<p><b><\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p><b>ArcGISDynamicMap<\/b><\/p>\n<p><b>ServiceLayer<\/b><\/p>\n<\/td>\n<td width=\"103\">\n<p><b>ArcGISTiledMap<\/b><\/p>\n<p><b>ServiceLayer<\/b><\/p>\n<\/td>\n<td width=\"157\">\n<p><b>\u81ea\u5b9a\u4e49\u7684\u5ba2\u6237\u7aef\u56fe\u5c42<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u5b9e\u65f6\u83b7\u53d6\u6700\u65b0\u6570\u636e<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u5207\u7247\u65b9\u5f0f\u663e\u793a\u670d\u52a1<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u9700\u8981\u63d0\u524d\u751f\u6210\u7f13\u5b58<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">\n<\/td>\n<td width=\"103\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">N<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u5ba2\u6237\u7aef\u7f13\u5b58\u5207\u7247\u52a0\u5feb\u663e\u793a\u901f\u5ea6<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u5229\u7528subdomain<\/b><b>\u52a0\u901f\u7f13\u5b58\u52a0\u8f7d<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u652f\u6301\u52a8\u6001\u6295\u5f71<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u52a8\u6001\u6307\u5b9a\u56fe\u50cf\u8f93\u51fa\u683c\u5f0f<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u63a7\u5236\u5b50\u56fe\u5c42\u53ef\u89c1\u6027<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u5229\u7528LayerDefination<\/b><b>\u8fc7\u6ee4\u6570\u636e<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u5229\u7528TimeExtent<\/b><b>\u663e\u793a\u65f6\u6001\u6570\u636e<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u5176\u5b83\u7f13\u5b58\u670d\u52a1\u7279\u6027<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"188\">\n<p align=\"center\"><b>\u5176\u5b83\u52a8\u6001\u670d\u52a1\u7279\u6027<\/b><\/p>\n<\/td>\n<td width=\"121\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<td width=\"103\">\n<p align=\"center\">N<\/p>\n<\/td>\n<td width=\"157\">\n<p align=\"center\">Y<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div align=\"center\">&#160;<\/div>\n<div align=\"left\">&#160;&#160;&#160; \u7531\u4e8e\u8fd9\u79cd\u56fe\u5c42\u7c7b\u578b\u4e09\u79cd\u5ba2\u6237\u7aefAPI\uff08Javascript\/Flex\/Silverlight\uff09\u5747\u53ef\u4f7f\u7528\uff0c\u56e0\u6b64\u5728\u8fd9\u91cc\u6211\u4eec\u5c31\u4e0d\u8ba8\u8bba\u5177\u4f53\u7684\u5b9e\u73b0\u4ee3\u7801\uff0c\u53ea\u8bf4\u660e\u4e00\u4e0b\u5b9e\u73b0\u601d\u8def\u3002    <br \/>&#160;&#160;&#160; \u9996\u5148\u6765\u89e3\u51b3\u4ee5\u7f13\u5b58\u670d\u52a1\u7684\u65b9\u5f0f\u6765\u663e\u793a\u52a8\u6001\u670d\u52a1\u7684\u95ee\u9898\u3002<a href=\"http:\/\/bbs.esrichina-bj.cn\/ESRI\/thread-84189-1-1.html\">\u300aArcGIS\u5ba2\u6237\u7aefAPI\u4e2d\u52a0\u8f7d\u5927\u91cf\u6570\u636e\u7684\u51e0\u79cd\u89e3\u51b3\u529e\u6cd5\uff08\u4ee5Silverlight API\u4e3a\u4f8b\uff09\u300b<\/a>\u4e00\u6587\u4e2d\u5176\u5b9e\u5df2\u7ecf\u63d0\u5230\uff0c\u4e3b\u8981\u662f\u7ee7\u627fTiledMapServiceLayer\uff0c\u5176\u4e2d\u83b7\u53d6\u5207\u7247\u7684GetUrl()\u65b9\u6cd5\uff0c\u8fd4\u56de\u503c\u662f\u5229\u7528<a href=\"http:\/\/help.arcgis.com\/EN\/arcgisserver\/10.0\/apis\/rest\/export.html\">REST SDK\u4e2d\u7684ExportMap<\/a>\u62fc\u63a5\u7684Url\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u5e76\u4e0d\u9700\u8981\u63d0\u524d\u5207\u56fe\uff0c\u8f93\u5165\u52a8\u6001\u5730\u56fe\u670d\u52a1\uff0c\u4ece\u800c\u8fbe\u5230\u7f13\u5b58\u5730\u56fe\u670d\u52a1\u7684\u663e\u793a\u6548\u679c\u3002     <br \/>&#160;&#160;&#160; \u4e3e\u4e00\u4e2a\u4f8b\u5b50\uff0c\u5982\u679c\u6211\u60f3\u8ba9\u81ea\u5df1\u7684\u670d\u52a1\u53ef\u4ee5\u548cGoogle Maps\/Bing Maps\/ArcGIS Online\u7684\u670d\u52a1\u76f8\u53e0\u52a0\uff08WKID 102100\/3857)\uff0c\u90a3\u4e48GetUrl()\u65b9\u6cd5\u4e2d\u770b\u5176\u6765\u5e94\u8be5\u662f\u8fd9\u6837\uff08\u91cc\u9762\u5305\u62ec\u4e86\u5982\u4f55\u6839\u636elevel\uff0crow\uff0ccol\u6765\u8ba1\u7b97\u4e00\u4e2a\u5207\u7247\u7684\u56db\u4e2a\u89d2\u70b9\u5750\u6807\uff09\uff1a<\/div>\n<div class=\"csharpcode\">\n<pre class=\"alt\"><span class=\"lnum\">   1:  <\/span><span class=\"kwrd\">public<\/span> <span class=\"kwrd\">override<\/span> <span class=\"kwrd\">string<\/span> GetTileUrl(<span class=\"kwrd\">int<\/span> level, <span class=\"kwrd\">int<\/span> row, <span class=\"kwrd\">int<\/span> col)<\/pre>\n<pre><span class=\"lnum\">   2:  <\/span>        {<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">   3:  <\/span>            <span class=\"kwrd\">string<\/span> baseUrl = <span class=\"str\">@&quot;{0}\/export?dpi=96&amp;transparent=true&amp;format=png8&amp;bbox={1}%2C{2}%2C{3}%2C{4}&amp;bboxSR=102100&amp;imageSR=102100&amp;size=256%2C256&amp;f=image&quot;<\/span>;<\/pre>\n<pre><span class=\"lnum\">   4:  <\/span>&#160;<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">   5:  <\/span>            <span class=\"kwrd\">double<\/span> cornerCoordinate = 20037508.3427892;<\/pre>\n<pre><span class=\"lnum\">   6:  <\/span>            <span class=\"kwrd\">double<\/span> originResolution = cornerCoordinate * 2 \/ 256;<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">   7:  <\/span>            <span class=\"kwrd\">double<\/span> resolution = originResolution;<\/pre>\n<pre><span class=\"lnum\">   8:  <\/span>            <span class=\"kwrd\">for<\/span> (<span class=\"kwrd\">int<\/span> i = 0; i &lt; level; i++)<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">   9:  <\/span>            {<\/pre>\n<pre><span class=\"lnum\">  10:  <\/span>                resolution \/= 2;<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">  11:  <\/span>            }<\/pre>\n<pre><span class=\"lnum\">  12:  <\/span>            <span class=\"kwrd\">double<\/span> xmin, ymin, xmax, ymax;<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">  13:  <\/span>            <span class=\"rem\">\/\/double resolution = 39135.7584820001;<\/span><\/pre>\n<pre><span class=\"lnum\">  14:  <\/span>            xmin = -cornerCoordinate + resolution * 256 * col;<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">  15:  <\/span>            ymin = cornerCoordinate - resolution * 256 * (row + 1);<\/pre>\n<pre><span class=\"lnum\">  16:  <\/span>            xmax = -cornerCoordinate + resolution * 256 * (col + 1);<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">  17:  <\/span>            ymax = cornerCoordinate - resolution * 256 * row;<\/pre>\n<pre><span class=\"lnum\">  18:  <\/span>&#160;<\/pre>\n<pre class=\"alt\"><span class=\"lnum\">  19:  <\/span>            <span class=\"kwrd\">return<\/span> <span class=\"kwrd\">string<\/span>.Format(baseUrl, Url, xmin, ymin, xmax, ymax);<\/pre>\n<pre><span class=\"lnum\">  20:  <\/span>        }<\/pre>\n<\/div>\n<style type=\"text\/css\">\n<p>.csharpcode, .csharpcode pre\n{\n\tfont-size: small;\n\tcolor: black;\n\tfont-family: consolas, \"Courier New\", courier, monospace;\n\tbackground-color: #ffffff;\n\t\/*white-space: pre;*\/\n}\n.csharpcode pre { margin: 0em; }\n.csharpcode .rem { color: #008000; }\n.csharpcode .kwrd { color: #0000ff; }\n.csharpcode .str { color: #006080; }\n.csharpcode .op { color: #0000c0; }\n.csharpcode .preproc { color: #cc6633; }\n.csharpcode .asp { background-color: #ffff00; }\n.csharpcode .html { color: #800000; }\n.csharpcode .attr { color: #ff0000; }\n.csharpcode .alt \n{\n\tbackground-color: #f4f4f4;\n\twidth: 100%;\n\tmargin: 0em;\n}\n.csharpcode .lnum { color: #606060; }<\/style>\n<p>&#160;&#160;&#160; \u7136\u540e\u518d\u6765\u770b\u4e0b\u6211\u4eec\u81ea\u5b9a\u4e49\u56fe\u5c42\u5b9e\u73b0ArcGISDynamicMapServiceLayer\u529f\u80fd\u7684\u53ef\u884c\u6027\u3002<br \/>\n  <br \/>&#160;&#160;&#160; \u5173\u4e8e\u52a8\u6001\u6295\u5f71\u3002\u5982\u679c\u60f3\u8981\u53e0\u52a0\u5230WGS84\u5750\u6807\u7684\u5e95\u56fe\u4e0a\uff0c\u53ea\u9700\u8981\u5c06bboxSR\u548cimageSR\u6539\u62104326\u5373\u53ef\u3002\u8fd9\u6837\u4fbf\u652f\u6301\u4e86\u52a8\u6001\u6295\u5f71\u3002 <\/p>\n<p>&#160;&#160;&#160; \u5173\u4e8e\u201c\u5207\u7247\u201d\u683c\u5f0fImageFormat\u3002\u53ea\u9700\u4fee\u6539\u4e0a\u9762baseUrl\u4e2d\u7684format\u53c2\u6570\u3002\u8fd9\u6837\u4e00\u6765\u65e2\u4e0d\u9700\u8981\u5728\u670d\u52a1\u5668\u7aef\u63d0\u524d\u5207\u56fe\uff0c\u4e5f\u80fd\u52a8\u6001\u6539\u53d8\u201c\u5207\u7247\u201d\u7684\u683c\u5f0f\u3002 <\/p>\n<p>&#160;&#160;&#160; \u5173\u4e8e\u670d\u52a1\u52a0\u8f7d\u901f\u5ea6\u3002\u5982\u679c\u5bf9\u4e8e\u51fa\u56fe\u901f\u5ea6\u4e0d\u6ee1\u610f\uff0c\u5219\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7aef\u53d1\u5e03\u82e5\u5e72\u4e2a\u76f8\u540c\u7684\u670d\u52a1\uff0c\u8f6e\u8be2\u4f7f\u7528\u6bcf\u4e2a\u670d\u52a1\u6765\u51fa\u56fe\uff0c\u53ef\u4ee5\u8fbe\u5230\u5e76\u884c\u52a0\u901f\u7684\u76ee\u7684\u3002 <\/p>\n<p>&#160;&#160;&#160; \u5173\u4e8eDisableClientCache\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4e0eArcGISTiledMapServiceLayer\u4e00\u6837\uff0c\u8fd9\u4e9b\u201c\u5207\u7247\u201d\u4f1a\u7f13\u5b58\u5728\u5ba2\u6237\u7aef\uff0c\u4fbf\u4e8e\u518d\u6b21\u6d4f\u89c8\u3002\u5982\u679c\u670d\u52a1\u5668\u7aef\u6570\u636e\u6709\u53d8\uff0c\u90a3\u4e48\u5c31\u65e0\u6cd5\u770b\u5230\u6700\u65b0\u7684\u53d8\u5316\u60c5\u51b5\uff0c\u8fd9\u662f\u7f13\u5b58\u670d\u52a1\u7684\u4e00\u4e2a\u7f3a\u70b9\u3002\u5728\u81ea\u5b9a\u4e49\u7684\u56fe\u5c42\u7c7b\u578b\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5728exportmap\u64cd\u4f5c\u7684Url\u6700\u540e\u518d\u52a0\u4e00\u4e2a\u65f6\u95f4\u6233\u53c2\u6570\uff0c\u6bd4\u5982_ts=DateTime.Now.Ticks.ToString()\uff0c\u90a3\u4e48\u5c31\u8fbe\u5230\u52a8\u6001\u5730\u56fe\u670d\u52a1\u6bcf\u6b21\u90fd\u80fd\u770b\u5230\u6700\u65b0\u7ed3\u679c\u7684\u76ee\u7684\u3002 <\/p>\n<p>&#160;&#160;&#160; \u5173\u4e8e\u63a7\u5236\u5b50\u56fe\u5c42\u7684\u53ef\u89c1\u6027\u3002REST SDK\u7684ExportMap\u64cd\u4f5c\u4e2d\u6709layers\u53c2\u6570\u53ef\u4ee5\u63a7\u5236\u3002\u6bd4\u5982layers=show:2,4,7\uff0c\u5219\u53ea\u4f1a\u663e\u793a\u7b2c3\u30015\u30018\u56fe\u5c42\u5185\u5bb9\u3002 <\/p>\n<p>&#160;&#160;&#160; \u5173\u4e8e\u56fe\u5c42\u5185\u5bb9\u8fc7\u6ee4\u3002ArcGISDynamicMapServiceLayer\u6709<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client%7EESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer%7ELayerDefinitions.html\">LayerDefinitions<\/a>\u5c5e\u6027\u53ef\u4ee5\u7528SQL\u8bed\u53e5\u6765\u7b5b\u9009\u5730\u56fe\u670d\u52a1\u7684\u8f93\u51fa\u5185\u5bb9\uff0c\u800cREST\u4e2d\u7684ExportMap\u65b9\u6cd5\u4e5f\u63d0\u4f9b\u4e86layerDefs\u4f9b\u6211\u4eec\u8c03\u7528\u3002\u6bd4\u5982{&quot;0&quot;:&quot;POP2000 &gt; 1000000&quot;,&quot;5&quot;:&quot;AREA &gt; 100000&quot;} \uff0c\u53ea\u8f93\u51fa\u7b2c\u4e00\u4e2a\u56fe\u5c42\u4e2dPOP2000\u5b57\u6bb5\u5927\u4e8e1000000\u7684\u8981\u7d20\uff0c\u7b2c\u516d\u4e2a\u56fe\u5c42\u4e2dAREA&gt;100000\u7684\u8981\u7d20\u3002 <\/p>\n<p>&#160;&#160;&#160; \u5173\u4e8eArcGIS Server 10\u4e2d\u7684TimeExtent\u3002ArcGISDynamicMapServiceLayer\u6709\u4e00\u4e2aTimeExtent\u5c5e\u6027\u7528\u6765\u663e\u793a\u4e00\u5b9a\u65f6\u95f4\u8303\u56f4\u5185\u7684\u6570\u636e\uff0c\u800cExportMap\u65b9\u6cd5\u4e5f\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86Time\u53c2\u6570\u6765\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\uff1b\u5e76\u4e14\u8fd8\u6709layerTimeOptions\u53c2\u6570\u6765\u63a7\u5236\u6bcf\u4e2a\u56fe\u5c42\u7684\u65f6\u95f4\u6bb5\uff08\u504f\u79fb\uff09\u3002 <\/p>\n<p>&#160;&#160;&#160; \u5173\u4e8e\u670d\u52a1\u7684\u5143\u6570\u636e\u3002ArcGISDynamicMapServiceLayer\u548cArcGISTiledMapServiceLayer\u4e2d\uff0c\u90fd\u6709\u4e00\u4e9b\u5173\u4e8e\u670d\u52a1\u5143\u6570\u636e\u7684\u5c5e\u6027\u3002\u6bd4\u5982<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client%7EESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer%7ECapabilities.html\">Capabilities<\/a>\uff0c<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client%7EESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer%7ECopyrightText.html\">CopyrightText<\/a>\uff0c<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client%7EESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer%7EDescription.html\">Description<\/a>\uff0c<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client%7EESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer%7EInitialExtent.html\">InitialExtent<\/a>\uff0c<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client%7EESRI.ArcGIS.Client.Layer%7EFullExtent.html\">FullExtent<\/a>\u7b49\uff0c\u8fd9\u4e9b\u5728REST\u7684MapService\u8d44\u6e90\u4e2d\u90fd\u5df2\u7ecf\u66b4\u9732\u4e86\u51fa\u6765\uff0c\u56e0\u6b64\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001\u8bf7\u6c42\u7684\u65b9\u5f0f\uff0c\u5728\u81ea\u5b9a\u4e49\u56fe\u5c42\u521d\u59cb\u5316\u7684\u65f6\u5019\u987a\u4fbf\u53d6\u56de\u8fd9\u4e9b\u6570\u636e\u3002 <\/p>\n<p>&#160;&#160;&#160; \u5173\u4e8eArcGISTiledMapServiceLayer\u4e2d\u7684<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client%7EESRI.ArcGIS.Client.TiledLayer%7ETileInfo.html\">TileInfo<\/a>\u3002\u7ee7\u627fTiledMapServiceLayer\u7c7b\u7684\u7b2c\u4e00\u4e2a\u6761\u4ef6\u5c31\u662f\u5f97\u77e5Tiling Scheme\u3002\u81ea\u7136TileInfo\u4e5f\u662f\u63a2\u56ca\u53d6\u7269\u3002 <\/p>\n<p>&#160;&#160;&#160; \u7ec6\u5fc3\u7684\u670b\u53cb\u5df2\u7ecf\u770b\u51fa\u6765\uff0c\u5176\u5b9e\u548cArcGISDynamicMapServiceLayer\u3001ArcGISTiledMapServiceLayer\u4e00\u6837\uff0c\u6211\u4eec\u8fd9\u91cc\u81ea\u5b9a\u7684\u56fe\u5c42\u4e5f\u662f\u5bf9ArcGIS Server REST SDK\u7684\u4e00\u4e2a\u5c01\u88c5\uff0c\u4f46\u5728\u663e\u793a\u65b9\u5f0f\u548c\u663e\u793a\u901f\u5ea6\u4e0a\u6709\u6240\u6539\u8fdb\u3002\u8f93\u5165\u7684\u662f\u52a8\u6001\u5730\u56fe\u670d\u52a1\uff0c\u6709\u7f13\u5b58\u670d\u52a1\u7684\u6548\u679c\uff0c\u4f46\u6ca1\u6709\u771f\u6b63\u505a\u8fc7\u7f13\u5b58\uff0c\u6240\u4ee5\u59d1\u4e14\u628a\u5b83\u53eb\u505aDynamicTileMapServiceLayer\u3002 <\/p>\n<p>&#160;&#160;&#160; \u4e00\u8d2f\u98ce\u683c\uff0c\u8981\u6709\u771f\u76f8\u3002\u8fd8\u662f\u6765\u770b\u4e00\u4e2a\u5b9e\u9645\u4f8b\u5b50\u611f\u53d7\u4e00\u4e0b\u5427\uff1a<a href=\"http:\/\/newnaw.com\/pub\/sl\/dynamictilemapservicelayer\/\">http:\/\/newnaw.com\/pub\/sl\/dynamictilemapservicelayer\/<\/a> <\/p>\n<p>&#160;&#160;&#160; \u6700\u540e\u8fd8\u8981\u63d0\u4e00\u4e0b\u8fd9\u79cd\u56fe\u5c42\u7684\u4e00\u4e2a\u786c\u4f24\uff1a\u9762\u56fe\u5c42\u7684\u91cd\u590d\u6807\u6ce8\u3002\u5177\u4f53\u539f\u56e0\u8bf7\u53c2\u89c1\uff1a<a href=\"http:\/\/help.arcgis.com\/en\/arcgisserver\/10.0\/help\/arcgis_server_java_help\/index.html#\/\/009200000r80000000.htm\">How do I avoid duplicate labels in my cache?<\/a>\u89e3\u51b3\u529e\u6cd5\u6709\u4e24\u79cd\uff0c1\u3001\u91c7\u7528Annotation\u4ee3\u66ffLabel\uff1b2\u3001\u4e0d\u8981\u4f7f\u7528Label\u3002 <\/p>\n<p>&#160;&#160;&#160; \u6e90\u7a0b\u5e8f\u4e0b\u8f7d\uff1a<a href=\"http:\/\/www.arcgis.com\/home\/item.html?id=5e32a79350b241f38032f9ca0321ccde\">http:\/\/www.arcgis.com\/home\/item.html?id=5e32a79350b241f38032f9ca0321ccde<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#160;&#160;&#160; ArcGIS\u5ba2\u6237\u7aefAPI\uff08Javascript\/Flex\/Silverlight\uff09\u4e2d\uff0c\u6211\u4eec\u6700\u5e38\u6253\u4ea4\u9053\u7684\u662fArcGISDynamicMapServiceLayer\u548cArcGISTiledMapServiceLayer\u4e24\u4e2a\u7c7b\uff0c\u57fa\u672c\u6bcf\u4e2a\u5730\u56fe\u4e2d\u90fd\u8981\u7528\u5230\u3002\u5b83\u4eec\u90fd\u53ef\u4ee5\u76f4\u63a5\u5c06\u670d\u52a1\u5668\u7aef\u53d1\u5e03\u7684\u5730\u56fe\u670d\u52a1\uff08MapService\uff09\u4f5c\u4e3a\u56fe\u5c42\uff0c\u52a0\u8f7d\u5230\u5ba2\u6237\u7aef\u7a0b\u5e8f\u4e2d\uff0c\u5206\u522b\u5bf9\u5e94\u4e86\u52a8\u6001\u5730\u56fe\u670d\u52a1\u548c\u7f13\u5b58\u5730\u56fe\u670d\u52a1\u3002\u8fd9\u4e24\u79cd\u56fe\u5c42\u7c7b\u578b\u5404\u6709\u4f18\u7f3a\u70b9\u3002 &#160;&#160;&#160; ArcGISDynamicMapServiceLayer\uff08\u52a8\u6001\u5730\u56fe\u670d\u52a1\uff09\u901a\u5e38\u7528\u4e8e\u5b9e\u65f6\u663e\u793a\u7ecf\u5e38\u53d8\u5316\u7684\u6570\u636e\uff0c\u652f\u6301\u63a7\u5236\u5355\u4e2a\u56fe\u5c42\u53ef\u89c1\u6027\uff0c\u53ef\u52a8\u6001\u6295\u5f71\u3002\u4f46\u7f3a\u70b9\u662f\u663e\u793a\u6548\u679c\u8f83\u5dee\uff0c\u6574\u4e2a\u670d\u52a1\u51fa\u56fe\u8f83\u6162\uff1bArcGISTiledMapServiceLayer\u53ef\u4ee5\u76f4\u63a5\u52a0\u8f7d\u670d\u52a1\u5668\u7aef\u7684\u7f13\u5b58\u5730\u56fe\u670d\u52a1\uff0c\u663e\u793a\u6548\u679c\u597d\uff0c\u901f\u5ea6\u5feb\uff0c\u4f46\u5b83\u7684\u7f3a\u70b9\u6b63\u662fArcGISDynamicMapServiceLayer\u7684\u4f18\u70b9\uff0c\u5373\u4e0d\u652f\u6301\u52a8\u6001\u6295\u5f71\uff0c\u4e0d\u80fd\u63a7\u5236\u56fe\u5c42\u53ef\u89c1\u6027\uff0c\u670d\u52a1\u5668\u7aef\u9700\u8981\u63d0\u524d\u751f\u6210\u7f13\u5b58\u7b49\u3002 &#160;&#160;&#160; \u8fd9\u91cc\u5c1d\u8bd5\u81ea\u5df1\u6765\u5728\u5ba2\u6237\u7aef\u5c01\u88c5\u4e00\u4e2a\u7c7b\uff0c\u521b\u5efa\u4e00\u79cd\u65b0\u7684\u5ba2\u6237\u7aef\u56fe\u5c42\u7c7b\u578b\u3002\u5b83\u80fd\u591f\u7efc\u5408\u4ee5\u4e0a\u4e24\u4e2a\u56fe\u5c42\u7684\u4f18\u70b9\uff0c\u800c\u514b\u670d\u5176\u5404\u81ea\u7684\u7f3a\u70b9\u3002\u5927\u81f4\u603b\u7ed3\u4e00\u4e0b\u6211\u4eec\u8981\u8fbe\u5230\u7684\u76ee\u7684\uff1a ArcGISDynamicMap ServiceLayer ArcGISTiledMap ServiceLayer \u81ea\u5b9a\u4e49\u7684\u5ba2\u6237\u7aef\u56fe\u5c42 \u5b9e\u65f6\u83b7\u53d6\u6700\u65b0\u6570\u636e Y N Y \u5207\u7247\u65b9\u5f0f\u663e\u793a\u670d\u52a1 N Y Y \u9700\u8981\u63d0\u524d\u751f\u6210\u7f13\u5b58 Y N \u5ba2\u6237\u7aef\u7f13\u5b58\u5207\u7247\u52a0\u5feb\u663e\u793a\u901f\u5ea6 N Y Y \u5229\u7528subdomain\u52a0\u901f\u7f13\u5b58\u52a0\u8f7d N Y Y \u652f\u6301\u52a8\u6001\u6295\u5f71 Y N Y \u52a8\u6001\u6307\u5b9a\u56fe\u50cf\u8f93\u51fa\u683c\u5f0f Y N Y \u63a7\u5236\u5b50\u56fe\u5c42\u53ef\u89c1\u6027 Y N Y \u5229\u7528LayerDefination\u8fc7\u6ee4\u6570\u636e Y N Y \u5229\u7528TimeExtent\u663e\u793a\u65f6\u6001\u6570\u636e Y N Y \u5176\u5b83\u7f13\u5b58\u670d\u52a1\u7279\u6027 N Y Y \u5176\u5b83\u52a8\u6001\u670d\u52a1\u7279\u6027 Y N Y &#160; &#160;&#160;&#160; \u7531\u4e8e\u8fd9\u79cd\u56fe\u5c42\u7c7b\u578b\u4e09\u79cd\u5ba2\u6237\u7aefAPI\uff08Javascript\/Flex\/Silverlight\uff09\u5747\u53ef\u4f7f\u7528\uff0c\u56e0\u6b64\u5728\u8fd9\u91cc\u6211\u4eec\u5c31\u4e0d\u8ba8\u8bba\u5177\u4f53\u7684\u5b9e\u73b0\u4ee3\u7801\uff0c\u53ea\u8bf4\u660e\u4e00\u4e0b\u5b9e\u73b0\u601d\u8def\u3002 &#160;&#160;&#160; \u9996\u5148\u6765\u89e3\u51b3\u4ee5\u7f13\u5b58\u670d\u52a1\u7684\u65b9\u5f0f\u6765\u663e\u793a\u52a8\u6001\u670d\u52a1\u7684\u95ee\u9898\u3002\u300aArcGIS\u5ba2\u6237\u7aefAPI\u4e2d\u52a0\u8f7d\u5927\u91cf\u6570\u636e\u7684\u51e0\u79cd\u89e3\u51b3\u529e\u6cd5\uff08\u4ee5Silverlight API\u4e3a\u4f8b\uff09\u300b\u4e00\u6587\u4e2d\u5176\u5b9e\u5df2\u7ecf\u63d0\u5230\uff0c\u4e3b\u8981\u662f\u7ee7\u627fTiledMapServiceLayer\uff0c\u5176\u4e2d\u83b7\u53d6\u5207\u7247\u7684GetUrl()\u65b9\u6cd5\uff0c\u8fd4\u56de\u503c\u662f\u5229\u7528REST SDK\u4e2d\u7684ExportMap\u62fc\u63a5\u7684Url\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u5e76\u4e0d\u9700\u8981\u63d0\u524d\u5207\u56fe\uff0c\u8f93\u5165\u52a8\u6001\u5730\u56fe\u670d\u52a1\uff0c\u4ece\u800c\u8fbe\u5230\u7f13\u5b58\u5730\u56fe\u670d\u52a1\u7684\u663e\u793a\u6548\u679c\u3002 &hellip; <a href=\"https:\/\/blog.newnaw.com\/?p=638\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ArcGIS\u5ba2\u6237\u7aefAPI\u4e2d\u53e6\u4e00\u79cd\u56fe\u5c42\u7c7b\u578b\u7684\u63a2\u8ba8\uff1aDynamicTileMapServiceLayer<\/span> <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[8,24],"_links":{"self":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/638"}],"collection":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=638"}],"version-history":[{"count":0,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/638\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}