I'm using ASP.NET MVC 4 and I'm trying to load a Google Map on my page.
I'm using Subgurim lib and already have the map object, but I don't know how to load it into the page.
Here's what I got so far:
@model Subgurim.Controles.GMap
@{
ViewBag.Title = "Pesquisa Carona";
}
<h2>PesquisaCarona</h2>
<h4>Diga o endereço</h4>
<input type="text" name="txEndereco" />
<input type="submit" />
<cc1:GMap ID="googleMap" runat="server" /> <!-- This doesnt work!!!--!>
I know that normally I would add the map accessing it directly like:
For the serverside:
GMap1.addGMarker(oMarker);
And for the page:
<cc1:GMap ID="GMap1" runat="server" Height="300px" Width="300px" />
But with MVC I can't do that.
Cheers!