Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 10th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Does google maps javascript api-key (v3) need to be kept secret in HTML checked into github and if so, how?
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  6. <style type="text/css">
  7.   html { height: 100% }
  8.   body { height: 100%; margin: 0; padding: 0 }
  9.   #map_canvas { height: 100% }
  10. </style>
  11. <script type="text/javascript"
  12.     src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
  13. </script>