{"id":959,"date":"2011-10-25T16:30:56","date_gmt":"2011-10-25T08:30:56","guid":{"rendered":"http:\/\/blog.newnaw.com\/?p=959"},"modified":"2011-10-25T16:30:56","modified_gmt":"2011-10-25T08:30:56","slug":"%e5%9c%a8arcgis-web-api%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e4%b8%ad%e4%bd%bf%e7%94%a8%e7%81%b0%e5%ba%a6%e5%9c%b0%e5%9b%be","status":"publish","type":"post","link":"https:\/\/blog.newnaw.com\/?p=959","title":{"rendered":"\u5728ArcGIS Web API\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u7070\u5ea6\u5730\u56fe"},"content":{"rendered":"<p>\u3000\u3000\u4e0a\u4e2a\u6708\u5e95\uff0cArcGIS Online<a href=\"http:\/\/blogs.esri.com\/Support\/blogs\/arcgisonline\/archive\/2011\/09\/29\/arcgis-online-canvas-maps-now-available.aspx\">\u53d1\u5e03\u4e86\u4e00\u6b3e\u5168\u65b0\u98ce\u683c\u7684\u5e95\u56fe\u670d\u52a1<\/a>\uff0c<a href=\"http:\/\/www.arcgis.com\/home\/item.html?id=ed712cb1db3e4bae9e85329040fb9a49\">Light Gray Basemap<\/a>\u3002\u8be5\u5e95\u56fe\u670d\u52a1\u5c3d\u53ef\u80fd\u5c11\u5730\u4f7f\u7528\u4e86\u8272\u5f69\uff0c\u6807\u6ce8\u548c\u8981\u7d20\u5185\u5bb9\uff0c\u76ee\u7684\u662f\u7a81\u51fa\u5730\u56fe\u7684\u4e3b\u9898\u5185\u5bb9\uff0c\u628a\u91cd\u70b9\u5c55\u793a\u7ed9\u6700\u7ec8\u7528\u6237\u3002\u7f8e\u5316\u7684\u5e95\u56fe\u56fa\u7136\u597d\u770b\uff0c\u4f46\u6709\u65f6\u6211\u4eec\u4e0d\u80fd\u4e3a\u4e86\u4f7f\u7528\u5730\u56fe\u800c\u53bb\u4f7f\u7528\u5730\u56fe\uff0c\u5ffd\u7565\u4e86\u6211\u4eec\u771f\u6b63\u60f3\u8981\u8868\u8fbe\u7684\u610f\u601d\uff0c\u5f88\u591a\u65f6\u5019\uff0c\u90fd\u4f1a\u56de\u5f52\u5230\u4ee5\u7b80\u4e3a\u7f8e\u7684\u539f\u70b9\u3002\u4f7f\u7528\u8fd9\u79cd\u5e95\u56fe\u670d\u52a1\uff0c\u6211\u4eec\u53ef\u4ee5\u5f88\u8f7b\u677e\u7684\u5c06\u6ce8\u610f\u529b\u96c6\u4e2d\u5728\u4e1a\u52a1\u6570\u636e\u4e0a\u3002<br \/><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/10\/AGOL_LE_2_basemap_types.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px 0px 5px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"AGOL_LE_2_basemap_types\" border=\"0\" alt=\"AGOL_LE_2_basemap_types\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/10\/AGOL_LE_2_basemap_types_thumb.png\" width=\"637\" height=\"728\"><\/a><\/p>\n<p>\u3000\u3000\u53ef\u4ee5\u770b\u5230\uff0c\u53ea\u6709\u5728\u53f3\u4e0a\u89d2\u7684Light Gray Canvas\u5e95\u56fe\u4e0a\uff0c\u56db\u4e2a\u8981\u7d20\u70b9\u624d\u6e05\u6670\u53ef\u89c1\u3002<br \/>\u3000\u3000\u5176\u5b9eGoogle Maps API\u4e2d\u5c31\u4e00\u76f4\u80fd\u591f<a href=\"http:\/\/code.google.com\/apis\/maps\/documentation\/javascript\/styling.html\">\u8bbe\u7f6e\u663e\u793a\u98ce\u683c<\/a>\uff0c\u4ee5\u9002\u5e94\u6211\u4eec\u7684\u9700\u6c42\u3002\u867d\u7136ArcGIS Online\u5df2\u7ecf\u63a8\u51fa\u4e86\u7070\u5ea6\u5e95\u56fe\u670d\u52a1\uff0c\u4f46\u5bf9\u4e8e\u81ea\u5df1\u7684\u5e95\u56fe\u670d\u52a1\uff08\u5c24\u5176\u662f\u56fd\u5185\u6570\u636e\u7528\u6237\uff09\u6765\u8bf4\uff0c\u5982\u4f55\u80fd\u591f\u98ce\u683c\u5316\u663e\u793a\u5462\uff1f\u4ee5ArcGIS API for Silverlight\u4e3a\u4f8b\u6765\u8bf4\u660e\u3002<br \/>\u3000\u3000\u7f13\u5b58\u5730\u56fe\u670d\u52a1\u6240\u5bf9\u5e94\u7684<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer_members.html\">ArcGISTiledMapServiceLayer<\/a>\u7c7b\u4e2d\uff0c\u66b4\u9732\u51fa\u4e86<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledLayer~TileLoaded_EV.html\">TileLoaded<\/a>\u4e8b\u4ef6\uff08\u7ee7\u627f\u81ea<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledLayer.html\">TiledLayer<\/a>\uff09\u3002\u8fd9\u4e2a\u4e8b\u4ef6\u4f1a\u5728\u6bcf\u4e00\u4e2a\u5207\u7247\u52a0\u8f7d\u5b8c\u6210\u65f6\u89e6\u53d1\uff0c\u5e76\u4e14\u4e8b\u4ef6\u53c2\u6570\u4e2d\u53ef\u4ee5\u83b7\u5f97<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledLayer+TileLoadEventArgs~ImageSource.html\">ImageSource<\/a>\u5c5e\u6027\uff0c\u5b83\u5c31\u662f\u5207\u7247\u672c\u8eab\uff0c\u968f\u540e\u5730\u56fe\u63a7\u4ef6\u4f1a\u5bf9\u8fd9\u4e9b\u5207\u7247\u8fdb\u884c\u62fc\u63a5\uff0c\u4ece\u800c\u5f62\u6210\u5b8c\u6574\u7684\u5730\u56fe\u3002\u6211\u4eec\u7684\u5de5\u4f5c\uff0c\u5c31\u662f\u5728\u8fd9\u4e2a\u4e8b\u4ef6\u4e2d\uff0c\u5bf9\u5207\u7247\u4e0a\u7684\u6bcf\u4e2a\u50cf\u7d20\u505a\u8272\u5f69\u5904\u7406\uff0c\u4ece\u800c\u8fbe\u5230\u98ce\u683c\u5316\u5730\u56fe\u670d\u52a1\u7684\u6548\u679c\u3002\u5728Silverlight\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528WritableBitmap\u6765\u5b8c\u6210\u8fd9\u9879\u5de5\u4f5c\uff0c\u4ee3\u7801\u5982\u4e0b\uff0c\u5177\u4f53\u539f\u7406\u53ef\u81ea\u5df1\u53c2\u8be6\uff1a<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #0000ff\">private<\/span> <span style=\"color: #0000ff\">void<\/span> ArcGISTiledMapServiceLayer_TileLoaded(<span style=\"color: #0000ff\">object<\/span> sender, TiledLayer.TileLoadEventArgs e)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span>             WriteableBitmap wb = <span style=\"color: #0000ff\">new<\/span> WriteableBitmap(e.ImageSource <span style=\"color: #0000ff\">as<\/span> BitmapSource);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>             <span style=\"color: #0000ff\">for<\/span> (<span style=\"color: #0000ff\">int<\/span> y = 0; y &lt; wb.PixelHeight; y++)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>             {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>                 <span style=\"color: #0000ff\">for<\/span> (<span style=\"color: #0000ff\">int<\/span> x = 0; x &lt; wb.PixelWidth; x++)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>                 {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>                     <span style=\"color: #0000ff\">int<\/span> pixel = wb.Pixels[y * wb.PixelWidth + x];<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>                     <span style=\"color: #0000ff\">byte<\/span>[] dd = BitConverter.GetBytes(pixel);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span>                     <span style=\"color: #0000ff\">double<\/span> R = dd[2];<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span>                     <span style=\"color: #0000ff\">double<\/span> G = dd[1];<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span>                     <span style=\"color: #0000ff\">double<\/span> B = dd[0];<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum13\">  13:<\/span>                     <span style=\"color: #0000ff\">byte<\/span> gray = (<span style=\"color: #0000ff\">byte<\/span>)(0.333 * R + 0.333 * G + 0.333 * B);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum14\">  14:<\/span>                     dd[0] = dd[1] = dd[2] = gray;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum15\">  15:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum16\">  16:<\/span>                     wb.Pixels[y * wb.PixelWidth + x] = BitConverter.ToInt32(dd, 0);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum17\">  17:<\/span>                 }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum18\">  18:<\/span>             }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum19\">  19:<\/span>             e.ImageSource = wb;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum20\">  20:<\/span>         }<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000\u4e0b\u56fe\u662f\u52a0\u8f7dArcGIS Online\u4e0aStreetMap\u65f6\u7684\u6548\u679c\uff1a<br \/><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/10\/image.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/10\/image_thumb.png\" width=\"448\" height=\"361\"><\/a>\u3000\u3000\u7ec6\u5fc3\u7684\u670b\u53cb\u53ef\u80fd\u4f1a\u53d1\u73b0\uff0c\u8fd9\u4e2aSilverlight\u7a0b\u5e8f\u5e76\u6ca1\u6709\u8fd0\u884c\u5728\u6d4f\u89c8\u5668\u4e2d\u3002\u8fd9\u7684\u786e\u662f\u4e00\u4e2aOOB\u7684\u7a0b\u5e8f\uff0c\u56e0\u4e3a<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledLayer~TileLoaded_EV.html\">TileLoaded<\/a>\u4e8b\u4ef6\u8981\u6c42Silverlight\u7a0b\u5e8f\u5fc5\u987b\u83b7\u5f97\u63d0\u5347\u6743\u9650\u624d\u884c\u3002\u4f46\u662fWPF\u548cWindows Phone\u7a0b\u5e8f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u4e0a\u8ff0\u4ee3\u7801\u3002<br \/>\u3000\u3000\u90a3\u4e48\u5728Silverlight\u5e94\u7528\u4e2d\u8fd8\u80fd\u5426\u663e\u793a\u98ce\u683c\u5316\u7684\u5730\u56fe\u670d\u52a1\u5462\uff1f\u7b54\u6848\u662f\u80af\u5b9a\u7684\u3002Map\u63a7\u4ef6\u6709\u4e00\u4e2a<a href=\"http:\/\/help.arcgis.com\/en\/webapi\/silverlight\/apiref\/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map_members.html\">Effect\u5c5e\u6027<\/a>\uff08\u7ee7\u627f\u81eaUIElement\uff09\uff0c\u7cfb\u7edf\u63d0\u4f9b\u4e86 BlurEffect\uff0cDropShadowEffect\u4e24\u4e2a\u73b0\u6210\u7684\u6548\u679c\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7HLSL\uff08High Level Shading Language\uff09\u8bed\u8a00\u6765\u81ea\u5b9a\u4e49\u4e00\u4e9b\u6548\u679c\uff0c\u6bd4\u5982\u7070\u5ea6\uff0c\u901a\u8fc7<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.windows.media.effects.pixelshader(v=VS.96).aspx\">PixelShader\u7c7b<\/a>\u5e94\u7528\u5230UIElement\u4e0a\uff0c\u4ece\u800c\u8fbe\u5230\u663e\u793a\u7070\u5ea6\u5730\u56fe\u7684\u76ee\u7684\uff08\u6b64\u65f6Map\u63a7\u4ef6\u4e2d\u7684\u6240\u6709\u56fe\u5c42\u90fd\u5c06\u53d8\u4e3a\u7070\u8272\uff09\u3002\u6709\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u52a8\u624b\u5b9e\u8df5\u4e00\u4e0b\uff0c<a href=\"http:\/\/wpffx.codeplex.com\/\">Windows Presentation Foundation Pixel Shader Effects Library<\/a>\u8fd9\u4e2a\u9879\u76ee\u4e2d\u53ef\u4ee5\u627e\u5230\u5f88\u591a\u73b0\u6210\u7684\u6548\u679c\u3002<br \/>\u3000\u3000\u518d\u6765\u770b\u770bArcGIS API for Javascript\/Flex\uff0c\u4e24\u4e2aAPI\u751a\u81f3\u90fd\u6ca1\u6709\u7c7b\u4f3c\u7684TileLoaded\u4e8b\u4ef6\u53ef\u7528\u3002\u5373\u4f7f\u6709\uff0c\u5728Javascript\u4e2d\u5904\u7406\u56fe\u7247\u7684\u989c\u8272\u4e5f\u662f\u4e00\u9879\u6709\u96be\u5ea6\u7684\u5de5\u4f5c\u3002\u4e0d\u8fc7\u4e0d\u7528\u62c5\u5fc3\uff0c<a href=\"http:\/\/blog.newnaw.com\/?p=890\">Portable Basemap Server<\/a>\u4ece1.0.6\u7248\u672c\u5f00\u59cb\uff0c\u63d0\u4f9b\u4e86\u98ce\u683c\u5316\u5730\u56fe\u670d\u52a1\u7684\u529f\u80fd\uff0c\u6709\u7070\u5ea6\u56fe\u548c\u53cd\u8272\u56fe\u4e24\u4e2a\u9009\u9879\uff0c\u65e0\u9700\u4efb\u4f55\u4ee3\u7801\uff0c\u5373\u53ef\u5728\u6240\u6709\u7684ArcGIS REST\u5ba2\u6237\u7aef\u7a0b\u5e8f\u4e2d\uff0c\u4f7f\u7528\u98ce\u683c\u5316\u7684\u5730\u56fe\u4e86\uff1a\uff09<br \/><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/10\/Untitled-13.jpg\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Untitled-1\" border=\"0\" alt=\"Untitled-1\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/10\/Untitled-1_thumb3.jpg\" width=\"622\" height=\"224\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u4e0a\u4e2a\u6708\u5e95\uff0cArcGIS Online\u53d1\u5e03\u4e86\u4e00\u6b3e\u5168\u65b0\u98ce\u683c\u7684\u5e95\u56fe\u670d\u52a1\uff0cLight Gray Basemap\u3002\u8be5\u5e95\u56fe\u670d\u52a1\u5c3d\u53ef\u80fd\u5c11\u5730\u4f7f\u7528\u4e86\u8272\u5f69\uff0c\u6807\u6ce8\u548c\u8981\u7d20\u5185\u5bb9\uff0c\u76ee\u7684\u662f\u7a81\u51fa\u5730\u56fe\u7684\u4e3b\u9898\u5185\u5bb9\uff0c\u628a\u91cd\u70b9\u5c55\u793a\u7ed9\u6700\u7ec8\u7528\u6237\u3002\u7f8e\u5316\u7684\u5e95\u56fe\u56fa\u7136\u597d\u770b\uff0c\u4f46\u6709\u65f6\u6211\u4eec\u4e0d\u80fd\u4e3a\u4e86\u4f7f\u7528\u5730\u56fe\u800c\u53bb\u4f7f\u7528\u5730\u56fe\uff0c\u5ffd\u7565\u4e86\u6211\u4eec\u771f\u6b63\u60f3\u8981\u8868\u8fbe\u7684\u610f\u601d\uff0c\u5f88\u591a\u65f6\u5019\uff0c\u90fd\u4f1a\u56de\u5f52\u5230\u4ee5\u7b80\u4e3a\u7f8e\u7684\u539f\u70b9\u3002\u4f7f\u7528\u8fd9\u79cd\u5e95\u56fe\u670d\u52a1\uff0c\u6211\u4eec\u53ef\u4ee5\u5f88\u8f7b\u677e\u7684\u5c06\u6ce8\u610f\u529b\u96c6\u4e2d\u5728\u4e1a\u52a1\u6570\u636e\u4e0a\u3002 \u3000\u3000\u53ef\u4ee5\u770b\u5230\uff0c\u53ea\u6709\u5728\u53f3\u4e0a\u89d2\u7684Light Gray Canvas\u5e95\u56fe\u4e0a\uff0c\u56db\u4e2a\u8981\u7d20\u70b9\u624d\u6e05\u6670\u53ef\u89c1\u3002\u3000\u3000\u5176\u5b9eGoogle Maps API\u4e2d\u5c31\u4e00\u76f4\u80fd\u591f\u8bbe\u7f6e\u663e\u793a\u98ce\u683c\uff0c\u4ee5\u9002\u5e94\u6211\u4eec\u7684\u9700\u6c42\u3002\u867d\u7136ArcGIS Online\u5df2\u7ecf\u63a8\u51fa\u4e86\u7070\u5ea6\u5e95\u56fe\u670d\u52a1\uff0c\u4f46\u5bf9\u4e8e\u81ea\u5df1\u7684\u5e95\u56fe\u670d\u52a1\uff08\u5c24\u5176\u662f\u56fd\u5185\u6570\u636e\u7528\u6237\uff09\u6765\u8bf4\uff0c\u5982\u4f55\u80fd\u591f\u98ce\u683c\u5316\u663e\u793a\u5462\uff1f\u4ee5ArcGIS API for Silverlight\u4e3a\u4f8b\u6765\u8bf4\u660e\u3002\u3000\u3000\u7f13\u5b58\u5730\u56fe\u670d\u52a1\u6240\u5bf9\u5e94\u7684ArcGISTiledMapServiceLayer\u7c7b\u4e2d\uff0c\u66b4\u9732\u51fa\u4e86TileLoaded\u4e8b\u4ef6\uff08\u7ee7\u627f\u81eaTiledLayer\uff09\u3002\u8fd9\u4e2a\u4e8b\u4ef6\u4f1a\u5728\u6bcf\u4e00\u4e2a\u5207\u7247\u52a0\u8f7d\u5b8c\u6210\u65f6\u89e6\u53d1\uff0c\u5e76\u4e14\u4e8b\u4ef6\u53c2\u6570\u4e2d\u53ef\u4ee5\u83b7\u5f97ImageSource\u5c5e\u6027\uff0c\u5b83\u5c31\u662f\u5207\u7247\u672c\u8eab\uff0c\u968f\u540e\u5730\u56fe\u63a7\u4ef6\u4f1a\u5bf9\u8fd9\u4e9b\u5207\u7247\u8fdb\u884c\u62fc\u63a5\uff0c\u4ece\u800c\u5f62\u6210\u5b8c\u6574\u7684\u5730\u56fe\u3002\u6211\u4eec\u7684\u5de5\u4f5c\uff0c\u5c31\u662f\u5728\u8fd9\u4e2a\u4e8b\u4ef6\u4e2d\uff0c\u5bf9\u5207\u7247\u4e0a\u7684\u6bcf\u4e2a\u50cf\u7d20\u505a\u8272\u5f69\u5904\u7406\uff0c\u4ece\u800c\u8fbe\u5230\u98ce\u683c\u5316\u5730\u56fe\u670d\u52a1\u7684\u6548\u679c\u3002\u5728Silverlight\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528WritableBitmap\u6765\u5b8c\u6210\u8fd9\u9879\u5de5\u4f5c\uff0c\u4ee3\u7801\u5982\u4e0b\uff0c\u5177\u4f53\u539f\u7406\u53ef\u81ea\u5df1\u53c2\u8be6\uff1a 1: private void ArcGISTiledMapServiceLayer_TileLoaded(object sender, TiledLayer.TileLoadEventArgs e) 2: { 3: WriteableBitmap wb = new WriteableBitmap(e.ImageSource as BitmapSource); 4: for (int y = 0; y &lt; wb.PixelHeight; y++) 5: { 6: for (int x = 0; x &lt; wb.PixelWidth; x++) 7: { 8: int pixel = wb.Pixels[y * wb.PixelWidth + x]; 9: byte[] &hellip; <a href=\"https:\/\/blog.newnaw.com\/?p=959\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u5728ArcGIS Web API\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u7070\u5ea6\u5730\u56fe<\/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":[5,8],"_links":{"self":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/959"}],"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=959"}],"version-history":[{"count":0,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/959\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}