This project is read-only.

Snapshot

How to use

Notice: 

The Control working with Static Google Map Kit. Assign the Static Google Map Kit object to the control and attach on GMarker click event to it. Following is a simple demonstration on how to use it. 

public Form2()
{
InitializeComponent();
CtpGglMap.Impl.StaticGMap gmap = new CtpGglMap.Impl.StaticGMap();
gmap.Center = new GeoPointImpl(40.714728, -73.998672);
gmap.Zoom = 14;
gmap.Height = 400;
gmap.Width = 600;
gmap.Sensor = false;

//markers
GMarker markj = new GMarker() { Point = new GeoPointImpl(40.714728, -73.998672), Label = "J" };
markj.SetMap(gmap);

GMarker marke = new GMarker() { Point = new GeoPointImpl(40.715748, -73.996672), Label = "E" };
marke.SetMap(gmap);

GMarker markf = new GMarker() { Point = new GeoPointImpl(40.714728, -73.994672), Label = "F" };
markf.SetMap(gmap);

GMarker markf2 = new GMarker() { Point = new GeoPointImpl(40.715748, -73.992672), Label = "F" };
markf2.SetMap(gmap);

this.map.Gmap = gmap;
this.map.OnGMarkerClick += new GStaticMap.OnGMarkerClickDelegate(this.onClickMarker);
}

protected void onClickMarker(GMarker marker, Point point)
{
this.textBox1.Text += "Point: " + point + ", Marker Label:" + marker.Label + Environment.NewLine;
}


Download

Last edited Feb 10, 2011 at 9:40 AM by jebberwocky, version 7

Comments

jebberwocky Jan 17, 2013 at 4:40 AM 
@kikileon
please refer to http://gglgeo.codeplex.com/SourceControl/changeset/view/19162#118273

kikeleon Sep 17, 2012 at 4:14 AM 
Como agrego este control al formulario?
Gracias

coolcbukowski Jun 29, 2012 at 9:58 AM 
the problem is "this.map.Gmap = gmap;" what is that "map" coming after "this. " but excellent share ,thanks