Welcome to ESRI Blogs

What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

Versions 1.2 of the ArcGIS JavaScript Extension for the Google Maps API and the ArcGIS JavaScript Extension for Microsoft Virtual Earth are now available for you to use. To get started, just change the version number in the script tag that references the API.

Google Maps example:

<script src="http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.2" type="text/javascript" ></script>

Virtual Earth example:

<script src="http://serverapi.arcgisonline.com/jsapi/ve/?v=1.2" type="text/javascript"></script>

Below are some of the new features in each API:

Geometry service can provide label points

The ArcGIS Server 9.3 Service Pack 1 geometry service can calculate a point that lies within a polygon and expose that point through REST. Both the Google Maps and Virtual Earth extensions have new methods that take advantage of this functionality. You can place text or some other marker at this point as a way of labeling the polygon.

Geometry service can calculate spatial relationships

In both the Google Maps and Virtual Earth extensions, methods have been added that allow you to calculate spatial relationships (such as "touches", "overlaps", "intersects") using the geometry service. Previously you could use queries to calculate some spatial relationships, but the geometry service provides more relationship types and doesn't require that the geometries come from ArcGIS Server. The geometries can just be two sets of graphics that you get from a Web service or derive from task results. To use this functionality your geometry service needs to be running on ArcGIS Server 9.3 Service Pack 1.

Image service layers supported (Google Maps only)

Using the ArcGIS JavaScript Extension for the Google Maps API 1.2, you can add ArcGIS Server image services as layers in Google Maps. Image services come from standalone raster datasets or .iscdef files produced by the ArcGIS Server Image Extension (formerly Image Server).

The Google Maps extension also has a few new methods on DynamicMapServiceLayer that are listed here.

Contributed by the ArcGIS JavaScript API team.

Published Monday, November 24, 2008 11:48 AM by sterlingdq
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

whats up with the image service support of google maps only? your prior post states, "Support for Image Services You can add ArcGIS Server Image Services to the map using ArcGISImageServiceLayer. Image services represent file-based raster datasets or raster collections published with the ArcGIS Server Image extension. You can control the image type, compression type for JPG, image bands, and interpolation type."
Wednesday, November 26, 2008 4:46 PM by steve

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

Hi Steve. Image services are supported in both the ArcGIS JavaScript API 1.2 and the ArcGIS JavaScript Extension for the Google Maps API 1.2. The "Google Maps only" was to imply that image services aren't supported in the Virtual Earth extension. This is because VE only allows tiled overlays.

Wednesday, November 26, 2008 5:03 PM by sterlingdq

# http://spatiallyadjusted.com/2008/11/24/esri-releases-version-12-of-the-arcgis-javascript-extensions-for-the-google-maps-api-and-microsoft-virtual-earth/

Wednesday, November 26, 2008 5:10 PM by TrackBack

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

I've run into a problem while creating shapes with the Virtual Earth API. I was hoping that this would be fixed in the 1.2 release, but it is not.

When I create a polygon or polyline, it displays correctly in Firefox but not in Internet Explorer. Taking the ArcGIS JavaScript for Virtual Earth out of my page solves my problem.

Have you all noticed this before?

Wednesday, December 03, 2008 2:33 PM by nathaniel.irwin

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

Nathaniel - The only issue we have seen is that the shape may not display initially, but will if the map is panned/zoomed. This appears to be a bug in VE. As a workaround, you can add a line after adding the shape: map.Pan(0,0); This triggers a draw of the shape. If that doesn't fix it, then since it could involve some troubleshooting, please contact ESRI Support to open an incident, if you are an ESRI customer. If not, please post the issue to the ESRI Forum for ArcGIS Server, under the VE extension section. Thanks.
Wednesday, December 03, 2008 3:56 PM by Bryan Baker

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

Thanks for the response, Bryan.

I have posted in the support forum (I had actually done this before I posted a comment here, but wasn't confident of a response there).

I will also open a support ticket.

Just so you know, the shape that I've created does not appear after panning/zooming the map, so your fix will not help.

Thursday, December 04, 2008 7:08 AM by nathaniel.irwin

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

Still issues with re-projecting data - our British Nation grid data, from ArcMap MXD, with correct Web Mercator projection set, is not re-projecting as it should, being offset by 100m or so. Is this a known issue? Are we expecting to much?
Thursday, December 11, 2008 8:24 AM by adrian marsden

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

@adrian- That's interesting...have you followed the steps in this ESRI Knowledge Base article 34749? http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=34749

Thursday, December 11, 2008 9:31 AM by sterlingdq

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

@sterlingdq - thanks for that, I hadn't found that KB article. "If necessary, the data can be transformed on the fly by setting the coordinate system of the data frame in ArcMap to WGS 1984 Web Mercator. " This is the part we were relying on - and it doesn't seem to work - (we have 9.3 SP1) - transforming the data permanently seems a bit drastic to be honest, as it would mean duplicating a large amount of basemap data. I tried this with a small sample and it seems fine. A few tests looked to me like Arc GIS Server was more or less ignoring the projection set in the MXD - changing it to some totally different ones resulted in the same offset. Nothing seemed to change. Am I missunderstanding what should be happening? Cheers aCM
Friday, December 12, 2008 1:42 AM by Adrian Marsden

# re: What's new in version 1.2 of the ArcGIS JavaScript extensions for the Google Maps API and Microsoft Virtual Earth

On a totally different point - can you advise on the best way to add a watermark to our data served from AGS? This is a license requirement for UK OS data and I can't think of a easy way of doing it - basically an extra PNG needs merging in with the output data. Many thanks aCM
Friday, December 12, 2008 2:48 AM by Adrian Marsden

Leave a Comment

(required) 
required 
(required)