The most enjoyable part of any programming assignment is right near the beginning when you sit down with a pile of tools and resources and start hammering away at raw clumps of code. The more difficult part comes when you attempt to launch the application, only to watch that tightly-written code unravel into multiple late nights staring at a computer screen. However, all is not lost, as we have an excellent recommendation for you, which is the subject of this blog: the Console tab inside your favorite browser’s Developer Tools. Continue reading
Functionality-wise, the app displays a 3D map with four widgets: Search, Zoom, Compass, and Attribution. By default, the View includes the latter three widgets, as described in the documentation. If you’re not familiar with the 4.x changes, all mapping apps contain a map and a view. The map holds the data, and the view contains the visualization information for that data. In other words, the map is the subject, and the view is the camera; complete with filters, modes, and settings. All 2D apps will have MapViews, and 3D apps will have SceneViews (note: the term ‘scene’ indicates three dimensions across ArcGIS). The same applies for maps from ArcGIS Online and Portal for ArcGIS: a WebMap is 2D, and a WebScene is 3D.
The next release of each ArcGIS API and Viewer (for Flex and Silverlight) will be significant in that they are the last planned releases of two once-popular technologies. While technical support will be available for both APIs and viewers through June … Continue reading
Staying updated on the latest revisions to online templates can sometimes prevent problems from appearing further down the road, and is one way a user can avoid being in a situation where they would need to start customizing their template from scratch. Users … Continue reading
Have you ever come to the ArcGIS Resource Center and checked out or tried the samples built using one of the Web APIs? If you haven’t, these samples can be found at the following links:
For those of you who have tried some of these samples, I want to provide some quick troubleshooting tips to help you when your local map services are not working with the samples.
Let’s look at the following scenario: You check out the samples online, they work well. You copy the code over to your local machine and run them there, they work great. Now, you want to use your local ArcGIS Server map services. So, you publish a map service using ArcCatalog or Server Manager, and you are able to preview it. You then make changes to the REST service endpoint in the code and run your Web API-based application, but the map doesn’t appear in the Web browser. In this situation, here are a few things that you could test:
- Check if you can view the map in the REST Services Directory.
If you cannot view the map, it could potentially be an issue with the installation, and the first thing I would suggest is adding a new instance of ArcGIS Server Manager. Please see the following knowledge base article for more information: HowTo: User the AddInstance utility to create a new instance of ArcGIS Server Manager.
- Check if a cross-domain access policy file exists.
If you are working with either the Silverlight API or the Flex API, you will need to check for a cross-domain access policy file. To access data from a different server than the one hosting your Flex or Silverlight application, the remote server needs to have a cross-domain policy file in the root directory. This can be done by using a clientaccesspolicy.xml or crossdomain.xml. In most cases, you just need to place the .xml file at the root of your Web site (e.g., for IIS, c:inetpubwwwroot). Please see the following ArcGIS Web Help article for more information: Deploying your application.
- Check if the cross-domain access policy file has proper permissions. If you have placed the cross-domain access policy file but the application still doesn’t display the map, make sure you can access the cross-domain access policy file in a Web browser. If you can’t, check for permissions on the file. Make sure ‘Internet Guest Account’ has the permission set to ‘read (and execute)’ this file.
Other potential issues:
- Make sure the extent that you are setting is using the correct values, i.e., the values are in-line with the spatial reference of the map service.
- Make sure you are using the right layer class, for example, for a cached map service, use ArcGISTiledMapServiceLayer class.
I hope these troubleshooting tips help you to get your local map services working with the samples from the ArcGIS Resource Center.
- Kripa J., Esri Support Analyst – SDK group, Esri Support Services
Hi, my name is Jamie P., and I am an SDK Analyst with ESRI Support Services. Having worked in both Development and Support Services has provided me with in-depth skills in the world of GIS. I hope you enjoy my blog postings and find the information useful.
Downloading the Aptana Studio IDE Plug-in
Browse to the Aptana Studio download site to download the plug-in. Under “Step 1”, choose Eclipse Plugin from the Installation Type drop-down list. Choose the version of your current Eclipse IDE from the Eclipse Version drop-down list. Click the “Download Now” button to begin the download process.
Installing the Aptana Studio IDE Plug-in
Notice the “Thanks for Downloading Aptana Studio 1.2.7” text area on the download page. Scroll down to the section where it states “Install Aptana Studio as a Plugin”. Notice the plug-in sections for the supported Eclipse versions listed. For Eclipse 3.4, a URL is provided as an update site that can be referenced from your Eclipse “Software Add ons and Updates” dialog box.
-Jamie P., Support Analyst, SDK Group, ESRI Support Services