Alignment of services over Google Maps Layer for ArcGIS JavaScript

634
1
07-27-2012 04:49 AM
ChristianLutz
New Contributor III
Hello,

i am using the Google Maps Layer for ArcGIS JavaScript (http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/1.05/docs/googlemapslayer/reference.html).

When I load the google maps layer and my services the layers are not really good aligned.. That means if I pan west the data of my services is shown more "westly" if I pan east it is shown more "eastly".. same for all directions.

If I use my data with the World Street Map from Esri (http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer) which is also in Web Mercartor as my services are all the data is perfectly aligned..

Any ideas?
Thanks
0 Kudos
1 Reply
hcgis
by
New Contributor III
Hi Christian

see this thread Google Layer Zoom and Pan Issues - please help

I found a workaround for this : try to adjust the zoomDuration, zoomRate , panDuration and panRate, the values below are not final you must test many values until this problem disappear
By increasing these values, the delay of loading between the google layer and your dynamic layer will disappear: 
          esri.config.defaults.map.zoomDuration = 1000; //time in milliseconds; default is 250
                 esri.config.defaults.map.zoomRate = 50; //refresh rate of zoom animation; default is 25

                 esri.config.defaults.map.panDuration = 1000; //time in milliseconds; default panDuration:250
                 esri.config.defaults.map.panRate = 50; //refresh rate of zoom animation; default panRate:25


Please mark as answered if it helps
0 Kudos