Flex Viewer and Google Maps

5122
19
10-09-2010 03:37 AM
DavideFiorino
New Contributor
Can i embed Google Maps (street, satellite,...) in the Sample Flex Viewer as base maps? And how to?

Thanks!!!
Tags (2)
0 Kudos
19 Replies
DerekLaw
Esri Esteemed Contributor
Hi Davide,

Technically, it is possible to embed Google Maps data into the Viewer. However, from a legal/licensing standpoint the answer is a little more complicated.

Please see this great blog post from Rex Hansen (of the ArcGIS API for Silverlight Dev team) on the topic:
Using Google Maps with ArcGIS Silverlight

Hope this helps,
0 Kudos
DavideFiorino
New Contributor
Hi Derek,
Thank you for your reply!

The solution proposed in the Rex Hansen article is very interesting and useful for mobile applications but too limited for a web application (ex. image size 640 x 640) as he highlighted in his article.

What about the use of ArcGIS JavaScript Extension for Google Maps to take advantage of interoperability provided by this API? This is certainly legal. But possible?

Thank you!!!!
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Davide,

The ArcGIS JavaScript Extension for Google Maps does work with Google Maps data, but can't really be integrated within the ArcGIS Viewer for Flex.

Hope this helps,
0 Kudos
İsmailZAMBAKCI
New Contributor II
if you want to see a sample application you can look at the http://www.cbsmerkezi.com/esrigoogle. But I dont know anythink about licensing constraints for usage of google maps api.
0 Kudos
MilosJovanovic
New Contributor II
Hello, if he could take over the project . Simply can not find the path to the google map server.
If you have any ideas, please let me know ....

Thanks
Miloš Jovanovi�?
0 Kudos
İsmailZAMBAKCI
New Contributor II
there is no problem for google map server. if you using a gmaps map object on
http://example/project/gmapobject.html you must get google api key for http://example/project
or I cant understand you 🙂
0 Kudos
MilosJovanovic
New Contributor II
I use ArcGIS viewer for Flex 2.2. In it I put my maps but I want to sprinkle and maps from Google. I saw the application's web:
http://www.cbsmerkezi.com/esrigoogle
I wonder whether sible to take the project.

It would be very helpful

Thank in advance
0 Kudos
İsmailZAMBAKCI
New Contributor II
Well, i'm not able to share the whole project with you but i can mention about how it is done. There exist two map objects in a canvas which Esri map object is over the Google map object. Any extend modification of the Esri map object updates the Google map object, too. To provide these extend transformations, you can use Esri' s project method of geometry service and WebMercatorUtil.geographicToWebMercator function which is in Esri Flex library.
( i.zambakci@gmail.com )
Have a nice day.
0 Kudos
MichaelParma1
New Contributor III
That is a nice piece of work. Is there some manner to configure a single Google basemap into the Flex viewer? Is sounds to me like there is a significant level of customization involved with creating the dropdown lists.

Thanks,
Mike
0 Kudos