Browse Source

take out ref to Google API key since it is not needed for the Google map choices

pull/536/head
Joe Germuska 11 years ago
parent
commit
4e194159ff
  1. 9
      source/js/Core/Embed/Embed.CDN.Generator.js
  2. 2
      website/templates/_make.html

9
source/js/Core/Embed/Embed.CDN.Generator.js

@ -67,7 +67,6 @@ function getLinkAndIframe() {
e_startzoomadjust = document.getElementById('embed-startzoomadjust'), e_startzoomadjust = document.getElementById('embed-startzoomadjust'),
e_startatslide = document.getElementById('embed-startatslide'), e_startatslide = document.getElementById('embed-startatslide'),
e_debug = document.getElementById('embed-debug'), e_debug = document.getElementById('embed-debug'),
e_googlemapkey = document.getElementById('embed-googlemapkey'),
start_at_end = false, start_at_end = false,
hash_bookmark = false, hash_bookmark = false,
is_debug = false, is_debug = false,
@ -131,10 +130,6 @@ function getLinkAndIframe() {
wp += "debug='" + is_debug + "' "; wp += "debug='" + is_debug + "' ";
} }
if (e_googlemapkey.value != "") {
wp += "gmap_key='" + e_googlemapkey.value + "' ";
}
if (parseInt(e_startatslide.value, 10) > 0) { if (parseInt(e_startatslide.value, 10) > 0) {
wp += "start_at_slide='" + parseInt(e_startatslide.value, 10) + "' "; wp += "start_at_slide='" + parseInt(e_startatslide.value, 10) + "' ";
} }
@ -170,10 +165,6 @@ function getLinkAndIframe() {
vars += "&start_zoom_adjust=" + parseInt(e_startzoomadjust.value, 10); vars += "&start_zoom_adjust=" + parseInt(e_startzoomadjust.value, 10);
} }
if (e_googlemapkey.value != "") {
vars += "&gmap_key=" + e_googlemapkey.value;
}
if (e_width.value > 0) { if (e_width.value > 0) {
vars += "&width=" + e_width.value; vars += "&width=" + e_width.value;
} }

2
website/templates/_make.html

@ -137,8 +137,6 @@
<option value="HYBRID">Google Maps: Hybrid</option> <option value="HYBRID">Google Maps: Hybrid</option>
<option value="SATELLITE">Google Maps: Satellite</option> <option value="SATELLITE">Google Maps: Satellite</option>
</select> </select>
<input type="text" placeholder="Google Maps API Key" id="embed-googlemapkey">
<p class="help-block">Due to recent changes to the Google Maps API, you need a <a href="https://developers.google.com/places/documentation/#Authentication" target="_blank">API Key</a> in order to use custom map types.</p>
</div> </div>
</div> </div>
<!-- Fonts--> <!-- Fonts-->

Loading…
Cancel
Save