November Happy Hour will be moved to Thursday December 5th.

Google Maps API Reference

P
P
Vote:
 

Hi all,

what is the best way to put the "'google maps api reference" reference?

Currently I'm using this in individual "Cshml" files where I need.

Please let me know if there is any other way to make it unique.

Thank you !!

#217593
Feb 26, 2020 8:50
Vote:
 

You need to describe more what you want to do.

Show us an example in code how you have done it now

#217615
Feb 26, 2020 11:14
P
Vote:
 

Where I can place below reference ?

<script src="https://maps.googleapis.com/maps/api/js?key=Your_Key&libraries=places" async defer></script>

Currently I placed this in View directly.

Is there any way to include in web.config and access from the same?

#217617
Edited, Feb 26, 2020 11:17
Vote:
 

In the view for the page you need it seems like a good ideá or in the layout if you are using it in many places.

Also put your key in web.config so you not hard code it in the view

#217619
Feb 26, 2020 11:20
P - Feb 26, 2020 11:25
Thank you Henrik
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.