esri.arcgis.gmaps.DynamicMapServiceLayer is part of the esri extensions for google maps, I believe (but not completely sure) it can't run on google earth
Why don't you enable the kml capabilities on the mapservice you are using to publish your spatial data? In this way you could be able to display your data with a request to the kml url
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.