Page 1 of 1

Google Map API Key (v11)

Posted: Sun Feb 19, 2017 6:07 pm
by jleraj

I learnt from google that I need to mention the key along with "maps.google[dot]com/maps/api/js?key=<my key>" But this I could find only when I view the page source, but not in the .cshtml file within the app folder. Now I have to edit the page source by right clicking on the browser and mention the key, and then overwrite the .cshtml file in the app folder.

Instead is there anyway I can mention the key in the project itself ?


Re: Google Map API Key

Posted: Mon Feb 20, 2017 10:44 am
by Webmaster

Just enter in the "apikey" setting of Custom View Tag setup form for Google Maps. (Read Custom View Tag notes in the form.)


Re: Google Map API Key

Posted: Mon Feb 20, 2017 12:12 pm
by jleraj

Thanks for the reply.

Sorry. I cant find anything with the name //apikey// in the custom view tag.

However, in the string that is shown in the drop down on custom view tag, I added the key and it shows like this

{"id":"GoogleMaps","name":"Google Maps","width":null,"width_field":null,"height":null,"height_field":null,"latitude":null,"latitude_field":"LATT","longitude":null,
"longitude_field":"LONGT","location":null,"location_field":"VEH_REG_NO","type":"SATELLITE","type_field":null,"zoom":8,"zoom_field":null,
"apikey":"<MYKEY>"}

But still getting the "Oops ...." error. I am using asp.net maker v11.0.2

Help please. Sorry if I sound too dumb.

Regards

Ed


Re: Google Map API Key (v11)

Posted: Mon Feb 20, 2017 12:18 pm
by Webmaster

No such setting in v11, manually adding that in the settings only will not work. v11 had been phrased out, please try the latest version (v2017).


Re: Google Map API Key (v11)

Posted: Mon Feb 20, 2017 12:33 pm
by jleraj

Thanks for the reply

Will do

Regards

Ed