Add a geographic search box to your app with a couple of lines of code. The widget defaults to the ArcGIS Online World Geocoding Service but can be customized to use one or more ArcGIS Server geocoding services. Check out the samples that use this new widget. The map now auto-resizes so it is no longer necessary to set up an event listener for resize events on the map's container to call map.resize when a map's container resizes. Two new map methods, getBasemap and setBasemap, make switching basemaps easy. setBasemap accepts one of the strings mentioned above that corresponds to an ArcGIS.com basemap. If map.options.basemap was used to initially set the basemap, or the map's basemap was set with setBasemap, getBasemap will return the string that corresponds to the map's current basemap. The map zoom controls now default to a '+' and '–' instead of a slider. The slider is available by passing sliderStyle: 'large' to the map's via the constructor options object. The map no longer requires a tiled or dynamic service to be the first type of layer added to the map. View the new Feature Layer in any projection sample or the gas prices by state example to see this in action. esri.geometry objects created without a spatial reference are assumed to be geographic and default to a spatial reference of WGS84 (wkid 4326). Instances of esri.geometry.Point have two new methods: getLatitude and getLongitude which return latitude or longitude if the point has geographic or web mercator coordinates. Otherwise, these methods return undefined. The map also has a geographicExtent property when the map is in geographic coordinates or web mercator. The draw toolbar's rectangle, triangle, circle and ellipse tools support click + drag to define the size of each shape. The toolbar now also includes options to draw arrows in specific directions (up, down, left and right). The new options are shown in the drawing tools sample. Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: January 29, 2014 @ 12:00 am