Search
 Search
GET THE HOTEST NEWS ABOUT VISUAL WEBGUI.
CREATE LINE OF BUSINESS SILVERLIGHT APPLICATIONS IN NO TIME.
EVERY THING YOU NEED TO START DEVELOPING WITH VISUAL WEBGUI.
SEE VISUAL WEBGUI SHOW CASES FROM AROUND THE WORLD.
ALL THE RESOURCES YOU NEED TO START BUILDING VISUAL WEBGUI APPLICATIONS TODAY.
SHARE AND FIND VISUAL WEBGUI RESOURCES.
TALK WITH OTHER VISUAL WEBGUI DEVELOPERS.
 
Codes

Current Codes | Categories | Search | Syndication

GoogleMaps integrated into Visual WebGui  

Published on:  Wednesday, August 15, 2007
By:  Guy
User Rating:  
Categories:   Interopability, Controls, Library, C#, JavaScript

Users have accessed this code article 2511 times.

The following code integrates google maps into Visual WebGui by creating a GoogleMap control which can be used as any Visual WebGui control.

The zipped archive contains a library which holds the GoogleMap control and a testing project which uses the GoogleMap control. The MainForm.Designer.cs file contains with in the InitializeComponent method the google API key  that should be generated at google here in order to use this control.

As all custom Visual WebGui control you should check that you register the control with in the Visual WebGui configuration section.

Versions:

  • 1.0: First Release.
  • 1.1: Added overlays collection and GMarker class.



Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Terms of Agreement:
By using this code, you agree to the following terms...

  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame.
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Comments
By mkvillalobos @ Wednesday, August 15, 2007 5:28 PM
EXCELLENT!

Please, keep the good work! This framework is a real promise in enterprise web development!

Best regards,

MV

By boulderdash @ Monday, August 20, 2007 3:12 PM
Awesome edition!

Will the new control be available in the next version as a VWG Toolbox control?

Asaf

By Guy @ Tuesday, August 28, 2007 5:33 PM
The VWG library will contain only basic controls and controls such as this will be distributed as a library extending the VWG standard controls. Just as Infragistic controls extend the default ASP.NET controls.

By Dilemma @ Thursday, December 20, 2007 9:18 AM
Hi all,

I've been searching for 2 days for a solution to a problem i encountered in the google control and i didn't want to keep this for myself.

The GoogleMap.htm file states:

objSrc.src = "http://maps.google.com/maps?file=api&v=2&key=";

This is incorrect! This works fine on a localhost situation but not on a webserver. The key is not set correctly.

The code should be (works for me in development and deployment)

objSrc.src = "http://maps.google.com/maps?file=api&v=2&key=" + mstrGoogleMapsAPIKey;

WATCH THE AMPERSANDS (&)


Good luck.


By Nuchi @ Friday, March 14, 2008 7:23 AM
I can't run the Google map demo, It errors
"A project with an Output Type of Class Library cannot be started directly"
I use Visual studio 2.0
Any help that would appreciate.
Thanks

You must be logged in to post a comment. You can login here
Copyright © 2005-2008 Visual WebGui®   Terms Of Use  Privacy Statement
Visual WebGui is copyright 2005-2008 by Gizmox