This way can improve the speed of the graph effect, the algorithm see http://blog.newnaw.com/?p=633, I use the ArcGIS for JavaScript API to implement. The specific code is:
1 functionInitdynamicmaplayer () {2Dojo.declare ("OGC. Dynamicmaplayer ", Esri.layers.TiledMapServiceLayer, {//Create Dynamicmaplayer by extending Esri.layers.TiledMapServiceLayer3DateTime: "",4Constructorfunction(datetime) {5 This. DateTime =datetime;6 This. spatialreference =NewESRI. Spatialreference ({7wkid:43268 });9 This. initialextent =NewEsri.geometry.Extent (-180,-90, 180, 90, This. spatialreference);Ten This. fullextent =NewEsri.geometry.Extent (-180,-90, 180, 90, This. spatialreference); One // A This. Tileinfo =NewEsri.layers.TileInfo ({ -"dpi": "90.71428571428571", -"Format": "Image/png", the"CompressionQuality": 0, -"Spatialreference": { -"Wkid": "4326" - }, +"Rows": 256, -"Cols": 256, +"Origin": { A"X": 180, at"Y": 90 - }, - - //Scales in DPI -"LODs" : [ -{' Level ': 1, ' resolution ': 0.7031249999891485, ' scale ': 2.958293554545656E8}, in{' Level ': 2, ' resolution ': 0.35156249999999994, ' scale ': 1.479146777272828E8}, -{' Level ': 3, ' resolution ': 0.17578124999999997, ' scale ': 7.39573388636414E7}, to{' Level ': 4, ' resolution ': 0.08789062500000014, ' scale ': 3.69786694318207E7}, +{' Level ': 5, ' resolution ': 0.04394531250000007, ' scale ': 1.848933471591035E7}, -{' Level ': 6, ' resolution ': 0.021972656250000007, ' scale ': 9244667.357955175}, the{' Level ': 7, ' resolution ': 0.01098632812500002, ' scale ': 4622333.678977588}, *{' Level ': 8, ' resolution ': 0.00549316406250001, ' scale ': 2311166.839488794}, ${' Level ': 9, ' resolution ': 0.0027465820312500017, ' scale ': 1155583.419744397},Panax Notoginseng{"Level": Ten, "Resolution": 0.0013732910156250009, "scale": 577791.7098721985}, -{"Level": one, "Resolution": 0.000686645507812499, "scale": 288895.85493609926}, the{"Level": +, "Resolution": 0.0003433227539062495, "scale": 144447.92746804963}, +{"Level": +, "Resolution": 0.00017166137695312503, "scale": 72223.96373402482}, A{"Level": +, "Resolution": 0.00008583068847656251, "scale": 36111.98186701241}, the{"Level": Resolution, "$": 0.000042915344238281406, "scale": 18055.990933506204}, +{"Level": +, "Resolution": 0.000021457672119140645, "scale": 9027.995466753102}, -{"Level": +, "Resolution": 0.000010728836059570307, "scale": 4513.997733376551}, ${"Level": +, "Resolution": 0.000005364418029785169, "scale": 2256.998866688275}, ${"Level": +, "Resolution": 2.68220901485e-6, "scale": 1128.499433344138}, -{"Level": +, "Resolution": 1.341104507425e-6, "scale": 564.2497166720688} - ] the - });Wuyi This. Loaded =true; the This. OnLoad ( This); - }, Wu -Gettileurl:function(level, row, col) { About varResolution = 0; $ for(vari = 0; I < This. tileInfo.lods.length; i++){ - varLOD = This. Tileinfo.lods[i]; - if(Lod.level = =Level ) { -Resolution =lod.resolution; A } + } the varxmin, ymin, Xmax, ymax; -Xmin = -180 + Resolution * 256 *Col; $Ymin = 90-resolution * (row + 1)); theXmax = -180 + Resolution * * (COL + 1)); theymax = 90-resolution * 256 *Row; the varbbox=xmin+ "%2c" +ymin+ "%2c" +xmax+ "%2c" +Ymax; the return"http://xxx.xxx.xxx.xxx/arcgis/rest/services/weatherservices/mapserver/export?dpi=96&transparent=true& format=png8&dynamiclayers=%5b%7b%22id%22%3a999%2c%22source%22%3a%7b%22type%22%3a%22datalayer%22%2c% 22datasource%22%3a%7b%22type%22%3a%22raster%22%2c%22workspaceid%22%3a1%2c%22datasourcename%22%3a%22 "+ This. datetime+ ". gif%22%7d%7d%2c%22minscale%22%3a0%2c%22maxscale%22%3a0%7d%5d&bbox=" +bbox+ "&bboxSR=4326 &imagesr=4326&size=256%2c256&f=image "; - } in }); the}
The above based on the day map Basemap, the effect is as follows:
Effect of the leverage, cloud pictures play a bit of a card.
ArcGIS for JavaScript inherits Tiledmapservicelayer for "dynamic graph"