Anonymous user  |  Log in  |  Create Account

How to begin to use GoogleMaps.Subgurim.NET

First step

After downloading the control and following the installation instructions, just drag the control from your ToolBox. A header will be added like this:

<%@ 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:

using Subgurim.Controles;
Imports Subgurim.Controles


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="">
    <add key="" value="tuClave_yourKey" />

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 to your tag <head>, so that a is resembled:

<html xmlns="" xmlns:v="urn:schemas-microsoft-com:vml">

and this field to style of your page:

<style type="text/css">
v\:* {

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.

Powered by Subgurim.NET