ThinkGeo.com    |     Documentation    |     Premium Support

GoogleMap Overlay licence

Dear all,

I am going to start my new project with Map suite web edition.

In that I wanted to use my base map as Google map. I found that there is a class called “GoogleOverlay” for accessing Google map as base map.

I wanted to know is there any licence we need to buy for accessing Google map or it is a free from Thinkgeo.
Please let me know it is urgent.

Thanks,
Ashok

Hi Ashok,

For web edition, the Google maps overlay don’t need key. Our Google maps layer need the static key.

About the limitation for each key you can find more detail information here: https://developers.google.com/maps/pricing-and-plans/

Wish that’s helpful, any question please let us know.

Regards,

Ethan

Hi Ethan,

Thanks for your reply. I tried a simple sample application to display a Google map. But i am getting following error

But i have used my own Google API key . my code is follows

Main.aspx.cs
public partial class Main : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
wfMap.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));
wfMap.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
wfMap.MapUnit = GeographyUnit.Meter;
wfMap.MapTools.OverlaySwitcher.Enabled = true;
wfMap.MapTools.MouseCoordinate.Enabled = true;
GoogleOverlay google = new GoogleOverlay(“Google Map”);
google.JavaScriptLibraryUri = new Uri(ConfigurationManager.AppSettings[“GoogleUriV3”]);
google.GoogleMapType = GoogleMapType.Satellite;
wfMap.CustomOverlays.Add(google);
}
}
}

Main.aspx

  <Thinkgeo:Map ID="wfMap" Height="100%" Width="100%" runat="server"></Thinkgeo:Map>

web.config

<add key="GoogleUri" value="http://maps.google.com/maps?file=api&amp;v=2&amp;key=AIzaSyCawjb1Oy2hxkGIeH91o7WmUrf9OnNJnoA;sensor=false"/>
<add key="GoogleUriV3" value="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=false"/>
<add key="VEUri" value="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"/>
<add key="BingMapsUri" value="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"/>
<!--<add key="LogFileForWebEdition" value="D:\temp\LogFileForWebEdition.txt"/>-->

Thank you

Hi Ashok,

Thanks for your share.

It looks something changed in for Google JavaScript library, our developer will did further research about this.

This is a sample based on your code. 8905.zip (82.5 KB)

And please remove your key in your reply. It’s in <add key="GoogleUri" value=" part.

Regards,

Ethan

Hi Ethan,

Thank you very much… Its working fine for me… I am able to get Google base map, and able to plot features on it. But i am not able to get Map mouse move feature in it…

  1. Actually I have added some point features on map and added some column values to it. Now i wanted to display those information in a tooltip on mouse over the feature (not click). and

  2. I wanted to display Mouse coordinates in latitude, longitude format shown in following image

  3. And need to remove Map data copyright 2018 in the map down shown in following image

Please help me on this…

Thank you
Ashok

Hi Ashok,

For item 3, remove the data copyright is not allowed by data provider.

The other 2 questions don’t related with Google map, you can just implement by our map.

For item 1 we don’t have sample for that, and if you want to implement that you need to write some custom JavaScript code, you can search on forum and find some related topic for example: Mouse over marker and increase the size of the marker using Javascript

For item 2, You can open that like this: Map1.MapTools.MouseCoordinate.Enabled = true;

Regards,

Ethan

Hi Ethan,
I am unable to OFF Labels(Country/City Names) in Google Maps. Is it possible to make visible off.
I want to make Google Maps functionality as like this.

https://mapstyle.withgoogle.com/

Thanks,
Riyaz

Hi Riyaz,

For Google’s static library, we cannot custom to render label or not, I think you can try to switch the GoogleMapType to see whether one of them don’t render the label.

Regards,

Ethan