ThinkGeo.com    |     Documentation    |     Premium Support

How to fetch map from Googlemap and display it in my application

Hi,


I display some pieces of satllite images in my application, but there are some blank between the images. Now I want to fetch map from googlemap and fill the blanks, does Map Suite Desktop Edition 3.0 can do that? If can, how?


Thank U.


Senlin



Senlin, 


Thanks for your post and question!
 
Attachment contains a demo I did before which show how to use Google Overlay.
 
You have to reference the DesktopEdtion.dll and MapSuiteCore.Dll to make it compile.
 
Let me know if you have any more questions.
 
Thanks
 
Yale

1003-Post5988Demo.zip (10.5 KB)

Yale,


I tried to run the google sample but it did not work.


I get a blue window and after a while an WebException is thrown complaining about a timeout...



Ofer, 
  
 It works fine if my network is ON. 
  
 Can you make sure your net work is OK? Also can you paste out the exception trace as well as some screen shot to see how is going on? 
  
 Any more information would be appreciated. 
  
 Thanks. 
  
 Yale 


Yale, 
 My network is fine. 
  
 VisualStudio displays an  "WebException was unhandled" mesage 


Hi Ofer,


It seems that the speed of your network is a little slow or maybe the setting of your firewall has some problem. We made a sample to test against these stuffs. You can get the sample from the attachment and run it to see if the loading image time is too long. If the image can not be loaded, you can set the Timeout property to a very big value to see what happens.
 
Any more questions please let me know.
 
Thanks,
 
sun

1021-Post6086Demo.zip (9.73 KB)

Sun, 
 Thanks  for your help. 
 The sample you sent me works fine on my computer. 
 Pressing the GetGoogleImage button returns an image within 600-700 ms. 
 Neverteless, the demo above (post5988) still does not work…

Ofer, 
  
 That is a wield problem! 
  
 Can you run the Exe file after compile directly to see whether it works? If not, can you paste out the exception stack trace or give us a screen shot to show what is going on? 
  
 Any more information would be appreciated! 
  
 Thanks. 
  
 Yale 


Yale and Sun, 
 Thank u. 
  
 Senlin

Yale,


when running the exe directly, nothing is displayed.


When i try to pan the map are i get an error as displayed in the attached file.


the content of the problem details is as follows:



Description:



Stopped working



Problem signature:



Problem Event Name: CLR20r3


Problem Signature 01: post5988.exe


Problem Signature 02: 1.0.0.0


Problem Signature 03: 4a7c6bf6


Problem Signature 04: System


Problem Signature 05: 2.0.0.0


Problem Signature 06: 49cc5ec9


Problem Signature 07: 1f6d


Problem Signature 08: 1bd


Problem Signature 09: System.Net.WebException


OS Version: 6.0.6002.2.2.0.256.6


Locale ID: 1033



 




I cannot see my attached file so here is another try



1028-tgPic.jpg (51.6 KB)

Ofer, 
  
 If I did NOT make a mistake, you are ruing on a machine which installed the 3.0.362 Evaluation version? Right? And did you install any previous MapSuite package before? 
  
 I have tested against several different OS environment and still cannot re-produce the problem as you said. 
  
 Following article talked about something related: 
 geekswithblogs.net/Denis/archive/2005/08/16/50365.aspx 
  
 Let me know if you have any more problems. 
  
 Thanks. 
  
 Yale