title: MVC Google map API key reading from database
body: <p>I have google map on my web page. It works fine.</p>
  
  <p>However, I hard code the map key like google example</p>
  
  <pre><code> &lt;script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&amp;callback=initMap" async defer&gt;&lt;/script&gt;
  </code></pre>
  
  <p>You_API_KEY is hard code value.</p>
  
  <p>First of all, I read various pages. I know I cannot hide this key.
  However, I do want to use variable such as instead of hard code the key. if the key changes, I have to change javascript. Plus on the CS code, I also call this function. it is better to save in the variable instead of hard code everywhere.</p>
  
  <p>How can I do?</p>
  
  <p>Thanks</p>