ArcGIS API for JavaScript 3.3 released

Source: Internet
Author: User

Arcgis_js_v33_api.zip: http://vdisk.weibo.com/s/nx2AM/1358216078

Arcgis_js_v33_sdk.zip: http://vdisk.weibo.com/s/nwUDp/1358216099


ESRI released the latest version of ArcGIS API for JavaScript 3.3, and updated the help interface.


 
Figure 1.1 ArcGIS API for JavaScript 3.3 Help Page

Figure 1.2 ArcGIS API for JavaScript 3.2 Help Page

1. New geographic code control

To use ArcGIS API for JavaScript 3.3, you only need a few simple codes to add a geo-query box control to your application. Although this control uses the world geocoding service of ArcGIS online by default, it can also be customized to use the geocoding service of up to ArcGIS Server.


Figure 2.1 new geographic code query Control

ClickSamples that use
Thisnew widget
View


2. New map constructor options

The new constructor options of map class in ArcGIS API for JavaScript 3.3 can help users quickly build map applications using concise code.
• Basemap: geographical map of arcgis.com. Possible values: "Streets", "satellite", "hybrid", "Topo", "gray", "oceans", "National-geographic", or "OSM ".
• Center: a coordinate array or point composed of longitude and latitude.
• ZOOM: the zoom level of the map.
• Minzoom: Minimum zoom level of a map.
• Maxzoom: The maximum zoom level of a map.
In the new interface, the map is scaled automatically. Therefore, you do not need to set up event listening on the map container side to monitor the map container size changes to change the MAP range.
In versions earlier than 3.3 and 3.3, the Code comparison chart for loading the map is shown.

Figure 2.2 comparison between map loading in the new and earlier versions


3. Simpler basemap Switching

In the new version of the API, two map methods are added, getbasemap and setbasemap, making the switching of the base map more convenient. Setbasemap receives the basemap name string mentioned above and converts it to the basemap corresponding to it in arcgis.com. If map. Options. basemap or setbasemap is used in the application to initialize the basemap, The getbasemap method is used to return the string of the name of the current geographical map.


4. default map micro-scaling Control

In the new API, the map's micro-scaling control replaces the slider with "+" and "-" to become the default control mode for map's micro-scaling, you can still use the slider mode by setting the sliderstyle attribute in the options of the map constructor to "large.


5. A map layer can contain only one graphic layer or element layer.

In version 3.3, map no longer requires you to add slices or dynamic services before you can add other layers. You can directly add graphics or element layers. View Feature
Layer in anyprojection sample or
Gas prices by stateexample to view the new feature.


6. Increased the coordinates of the longitude and latitude

If the ESRI. Geometry object is not assigned a spatial reference during creation, it is assumed that the geographic coordinate system is used and WGS 84 (wkid 4326) is used by default ). In the new API version, ESRI. geometry. the getlatitude and getlongpolling methods are added to the point instance. If the point has geographical coordinates or network mokto coordinates, the longitude and latitude of the point can be obtained through these two methods. Otherwise, then the two methods return undefined. If a map has a geographic coordinate system or a network mocato coordinate, use the geographicextent attribute to obtain the geographic range.


7. Enhancement of drawing tools

The rectangle, triangle, circle, and elliptical tools in the Drawing toolbar support Mouse clicking and dragging to control the image range. In the new API version, the toolbar can also draw up, down, left, right, and other specific methods. These new features can be found in the drawing
Tools sample.


8. Additional Functions

• The new redraw method in the element layer can redraw elements without returning to the service.
• Pass functions instead of using a class of attribute field name rendering or unique value rendering to calculate the data value to be rendered. You can view uscounty Population Change
Over time sample.
• The setmaxinclusive method in class rendering is used to specify whether the elements that meet the maximum value of a symbol class should be included in the class.
• The uniformscaling option is added to the editing toolbar. This option keeps the aspect ratio unchanged when the image size changes.


9. New instances

· Createa map using new simple options

· Geocoderwidget

· Geocoderwidget with custom options

· Geocoderwidget with custom Style

· Geocoderwidget using a suffix to restrict
Search Area

· Locatepoints of interest (pois)

· Featurelayer in any projection

· Featurelayer with no basemap

· Dailygas prices by State mashed up
A feature layer

Rendererusing a function to determine
Feature symbols


10. Breakthrough changes

• You do not need to specify a specific space reference when creating a geometry. If there is no specific space reference, the API uses WGS84 (wkid 4326) by default ). When you create a non-WGS84 coordinate ry in the application, if there is no space reference, you must specify a specific space reference for the ry.
• The default zoom slider style of map changes. When creating a map, the slider with a scale is no longer the default style, but you can restore it to the previous style by setting the sliderstyle attribute to "large.
• When the locale or extralocale paths of dijits layout and data-Dojo-config (or dojoconfig) are not set, applications that use lang = "en" will be damaged. To avoid such errors, we recommend that you set the locale or extralocale path in data-Dojo-config or remove the lang = "en" attribute. Otherwise, "dojo/Parser :: parse () Error typeerror "error. In Firefox, the error" typeerror: _ 72f (...)
Is undefined ". Querying more error messages can browse the site http://trac.dojotoolkit.org/ticket/15630#comment:7 and http://trac.dojotoolkit.org/ticket/15768#comment:6


11. enhancements and bug fixes

• Nim087469: arcgisdynamicmapservicelayer. setdynamiclayerinfos () cannot correctly create the ESRI. layers. dynamiclayerinfo object from JSON.
• Nim087472: you cannot create a multi-time slider on the same page.
• Nim087503: the conversion from a gauge control to AMD.
• Nim087504: Legend controls are converted to AMD.
• Nim087499 Editor: When a custom attribute is specified, the empty check dialog box will pop up when selecting a element.
• Nim087510: ESRI. layers. webtiledlayer is invalid when an API built using compression is used. This is because the declared dojo. stirng is not displayed in this class, instead of dojo. String.
• Nim088028: ESRI. Request allows you to upload files in the formdata format, while the browser supports formdata.
• Nim087511: Change the ESRI. _ isdefined Method to the public method ESRI. isdefined.
• Nim087500: do not display the dash in featurelayer of 3.2.
• Nim087507 identitymanager: fixed the reference for Token Generation.
• Nim087512 identitymanager: transmits the error. messagecode attribute through the return result of geowarehouse server.
• Nim088031: A layer is invisible when it is removed from the map and added to the map.
• Nim088024 legend Widget: do not add a map ratio with margin of 1.
• Nim087513 popup: supports two time formats: shortdatelongtime and shortdatelongtime24.
• Nim088027 popup: If the layer of a element does not have a shape field, the element cannot be displayed.
• Nim088032 popup: removes the border and background color of the image and chart.
• Nim087501 Portal: add the getportaluser method, which returns the object of the currently logged-on portaluser.
• Nim087505 Portal: a null exception occurs when the portal. signout method is called.
• Nim088021 printing: adds a new attribute to ESRI. Tasks. printtemplate as ":" showattribution "and controls the output switch.
• Nim088026 printing: When elements in a element set do not have ry, these elements should not be included in a print task.
• Nim088030 printing: Print tasks should exclude the layers converted by the javascript API kmllayer. JS, because the Print Service does not know the kml folder. Instead, send graphic slayers or mapimagelayers as the workspace.
• Nim088035 printing: printtask should exclude invalid images from which mapimagelayer contains invalid URL or imagedata attributes.
• Nim088029 printing: ESRI. Tasks. printtemplate. layeroutoptions supports the customtextelements attribute.
• Nim085927 printing: When printing, the element set created based on the element layer should display the layer name or layer ID in the legend.
• Nim088023: it is saved as normal when the link time exceeds the original range.
• Nim088034: Support for diresosoutputtype and directionsstylename parameters to routeparameters and closestfacilityparameters.
• Nim088033: the default value of ESRI. ESRI. Tasks. closestfacilityparameters. directionstimeattribute should be "null" rather than "false ".
• Nim088025: When a timeexent object is created in Firefox and IE, the millisecond precision is lost when the start time and end time are specified.
• Nim083409: When the edited attribute is 0, applyedits sends an empty string ..
• Nim088022: The ESRI logo is displayed when the map space is previewed in IE7.


Dojo 1.8
ArcGIS API for JavaScript 3.3 uses dojo 1.8.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.