Previous
After
downloading the control and following the installation instructions, just drag the control from your ToolBox. A header will be added like:
<%@ register assembly="GMaps" namespace="Subgurim.Controles" tagprefix="cc1" %>
And in your aspx you will have:
<cc1:GMap ID="GMap1" runat="server" />
And to use the library in code, do not forget to declare it:
C#: using Subgurim.Controles;
VB.NET: Imports Subgurim.Controles
Instructions
1.- First you must
obtain a Key, to use the Google API. You can obtain from
here. The key depends on the domain where you are going to use it, which is why for each Website that you will use GoogleMaps.Subgurim.NET you must create the appropriate Key.
The simplest way to define the key is in your web.config:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
...
<appSettings>
<add key="googlemaps.subgurim.net" value="tuClave_yourKey"
/>
</appSettings>
...
</configuration>
This way, the control will already have access to the key.
2.-For a correct operation in all the navigators, Google advises that the page fulfills standards XML. For it, you do not have more to add to an attribute (next one is in negrita) to yours tag head, so that a is resembled:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
and this field to style of your page:
<style type="text/css">
v\:* {
behavior:url(#default#VML);
}
</style>
3.- Now already only it is to begin to use the control!
For it it is recommended to follow
the examples and before any doubt, it devises or suggestion, you do not doubt
asking in the forum.