Tag: JavaScript

Making Your Pop-up Pop!

Making your pop-up pop!

Want to make a beautiful pop-up to match your map or website? With a little elbow grease, CSS, and a keen eye for design, it’s easy. Here’s how you can skin the ArcGIS API for JavaScript pop-up widget. The pop-up … Continue reading

Posted in ArcGIS Online, Developer, Mapping, Web | Tagged , , , , , , , , , , , , , , | 6 Comments

ArcGIS API for JavaScript Version 3.1 Released

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

Continue reading

Posted in Developer | Tagged , , | 9 Comments

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:

Features

  • 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