Tag: JavaScript

Developer Summit Europe

To build on the success of recent Developer Summit in California, we’ve decided to take the event on the road. Esri will be hosting 3 Dev Summits in Europe this September.

I hope developers from all over Europe and the world will come together in Rotterdam, Berlin or London (all 3 if you want). The technical sessions will focus on becoming more effective at building web, mobile and desktop applications. Senior Esri development staff will be presenting so you’ll get a chance to see what’s coming next. Registration information will be available soon but mark your calendar now and plan to join us in Europe.

Posted in Developer | Tagged , , , , , , , , , , , , , , , , , | Leave a comment

ArcGIS API for JavaScript Version 3.0 Released

Version 3.0 of the ArcGIS API for JavaScript is now available! Please refer to the full What’s New in 3.0 document for the full list of features and bug fixes. Highlights include:

Continue reading

Posted in Developer | Tagged , , | 19 Comments

Writing Unit Tests for Your ArcGIS API for JavaScript Apps

Whether you’re working with an existing application, or you’re planning a new app, unit testing provides an efficient, dependable way to verify that your code functions as expected and ensure that your app’s features work. In a nutshell, unit testing provides an automated way to target, test and validate specific components of an application.

As with most things JavaScript, Dojo has you covered. Specifically, the Dojo Objective Harness (DOH), which ships with Dojo, provides a framework for writing and running unit tests. The ArcGIS API for JavaScript team uses DOH to run unit tests throughout the development process to check that changes made to the API do not break existing functionality, and that new features accomplish their intended purpose. For more background on DOH and to get up to speed on its capabilities, please head over to the Dojo reference guide page for DOH. Please read through that page to get a better understanding of what DOH can do for you. Continue reading

Posted in Developer, Web | Tagged , , , , , | 3 Comments

ArcGIS API for JavaScript Version 2.8 Released

Version 2.8 of the ArcGIS API for JavaScript is now available! Highlights include:


  • Portal for ArcGIS API:  An API to build applications that works with content from ArcGIS Online or an ArcGIS Portal
  • Support for ArcGIS Server 10.1 editor tracking which enables automatic tracking of which user created a feature, when a feature was created, which user last updated a feature and when a feature was last updated
  • Simpler constructor signatures for esri.SpatialReference class
  • Feature Layers now fire an onQueryLimitExceeded event when a feature layer is unable to draw all expected features due to maxRecordCount restriction imposed on the server
  • The Identity Manager has new methods to serialize its state and re-hydrate later

New Samples

Refer to the full What’s New in 2.8 document for the full list of new features and bug fixes.

Posted in ArcGIS Online, Developer, Web | Tagged , , | 4 Comments

Questions and answers about HTML5 and ArcGIS

We recently presented a live training seminar titled Using HTML5 with ArcGIS. In the seminar we provided an overview of HTML5 and looked at a number of common examples of how to use HTML5 in your GIS applications. We also showed a bunch of tips and tricks to get you started. If you missed the seminar, the recording is available on the Esri Training site.

The seminar included three question and answer sessions. We thought it would be worthwhile to post the five most frequently asked questions along with answers. Continue reading

Posted in Services, Web | Tagged , , , | 8 Comments

ArcGIS API for JavaScript Version 2.7 Released

Version 2.7 of the ArcGIS API for JavaScript is now available! Highlights include:

  • Superpan map navigation is now the default when using an Apple trackpad or magic mouse. More information is available in the Map Navigation conceptual help topic.
  • Feature layers in on-demand mode now automatically generalize features when map scale changes. Refer to the Feature Layer best practices conceptual help topic, specifically the Feature Generalization section, for a detailed explanation.
  • Some more ArcGIS Server 10.1 features have been added in this release for those testing the beta software:
Posted in Web | Tagged , | Leave a comment

Esri picture marker symbol generator for JavaScript developers

The ArcGIS.com map viewer provides a nice collection of picture marker symbols that can be used to symbolize features on your map. If you’re a developer, you might wonder how you can use these symbols in your applications. You could potentially use tools like Firebug or Chrome Developer tools to inspect ArcGIS.com and discover the image URL, but to make things easier, we’ve created a sample that allows you to select a symbol and generate the JavaScript Object Notation (JSON) needed to draw the symbol:

When using this sample, just click a symbol and Continue reading

Posted in Web | Tagged , , , | 3 Comments

Enhanced map navigation for Mac OS X using ArcGIS API for JavaScript

With the release of OS 10.6 Snow Leopard and Lion OS, the Mac Magic Trackpad and Magic Mouse allow you to interact with the system using touch gestures like tap, scroll and swipe. While not all gestures are passed on as native browser events, some gestures emit traditional browser scroll events that enable intuitive and powerful map exploration.

If you have a Mac with OS X 10.6 or greater, click here to view a demo that shows how to pan and zoom using the track pad gestures. The default behavior is pan, press the shift key to enter zoom mode.

Trackpad Zoom Gestures Trackpad Pan Gestures

Continue reading

Posted in Web | Tagged , | Leave a comment

Hardware accelerated map navigation with CSS3

One of the enhancements to the ArcGIS API for JavaScript at version 2.6 is the use of CSS3 transforms while panning and zooming a map. When enabled, there is a subtle animation and fade when images that make up tiled map layers are added to or removed from the map. You can see this in one of the simple SDK samples. This is similar to how the other ArcGIS web APIs, for Flex and Silverlight, operate.

There are both aesthetic and performance benefits from using the latest and greatest in CSS. Aesthetically, the transition between map levels is more pleasing due to a fade animation. For performance, some webkit and mobile browsers use hardware acceleration when a webpage uses CSS transforms. This is especially beneficial on older versions of iOS.

Like other new HTML5 and CSS3 capabilities, transforms are not yet consistently implemented across browsers. For a complete rundown of browser support, check out caniuse.com’s browser support chart for CSS3 transforms. While that’s a good reference, there are some subtleties to the current implementations. In Chrome on XP, there’s an existing bug that will hopefully be addressed by Chrome 17 in early 2012. For Firefox, version 10 (also due in early 2012) should bring full support for transforms.

Version 2.6 of the ArcGIS API for JavaScript uses CSS3 transforms by default where they’re supported. The API will automatically use CSS3 transforms for the following browsers:

Posted in Services | Tagged , , | Leave a comment

Version 2.6 of the ArcGIS API for JavaScript released today

Version 2.6 of the ArcGIS API for JavaScript is now available! Highlights include:

Improved map display using HTML5 and CSS3

When supported by the browser, the API now uses CSS3 transforms to provide a smoother zooming and panning experience.

Support for the latest version of maps from ArcGIS Online

ArcGIS Online web maps with layers created from remotely hosted comma-separated values (CSV) files are supported. This includes fusion tables and CSV files hosted on the open web.

Enhancements to the Basemap Gallery widget

The Basemap Gallery now supports working with a group of maps within ArcGIS Online. To use a group, specify the basemapsGroup constructor parameter when creating a Basemap Gallery widget.

Support for new features in ArcGIS Server 10.1 beta 2

New features now supported by the ArcGIS API for JavaScript but that require a 10.1 service:

Additional API Enhancements and Bug Fixes

Please refer to the What’s New in Version 2.6 topic in the documentation for additional information about version 2.6 of the ArcGIS API for JavaScript.

Contributed by Derek Swingley of the ArcGIS API for JavaScript development team

Posted in Services | Tagged , , , , | 1 Comment