Add Generic
Up until now, in order to add any element to the GMap, we had a specific function that was in charge.
For example, to add a control we called addControl (...), to add movement, we called to addMovement (...), and so forth with practically all of the possible elements.
In maintaining the compatibility with previous versions to v1.4, we now have another way to add any type of element, just call Add (...), with the parameter that we give to the unique function.
See the example.
Code.aspx
<cc1:GMap ID="GMap1" runat="server" />
Code.aspx.cs
GLatLng ll1 = new GLatLng(41, 1);
GLatLng ll2 = new GLatLng(39, 0);
GMap1.Add(new GControl(GControl.preBuilt.SmallMapControl));
GMap1.Add(new GCustomCursor(cursor.crosshair, cursor.help));
GMap1.Add(new GControl(GControl.extraBuilt.TextualOnClickCoordinatesControl, new GControlPosition(GControlPosition.position.Top_Right)));
GMap1.Add(new GInfoWindow(ll1, "Hello!!"));
GMap1.Add(new GMove(1500, ll2));
GMap1.Add(new GMove(2000, ll1));
GMap1.Add(new GeoCoding());