Skip to content

Commit

Permalink
Merge pull request #127 from NickFitz/master
Browse files Browse the repository at this point in the history
Use HTTPS URL for Bing Maps to prevent insecure content blocking
  • Loading branch information
NickFitz authored Aug 23, 2019
2 parents 5c9e1a6 + 5d030f2 commit 657b0c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions examples/add-custom-control.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,7 @@ <h2>Google Maps</h2>
const latLonContainer = document.createElement('div');
const latLonControl = new GoogleLatLonControl(latLonContainer, map);
latLonContainer.index = 1;
console.log(latLonContainer.outerHTML);
map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(latLonContainer);
console.log(latLonContainer.outerHTML);
}
</script>
</section>
Expand All @@ -302,7 +300,7 @@ <h2>Google Maps</h2>
<h2>Bing Maps Control API</h2>
<div id="bing-maps-api-map" style="width: 600px; height: 450px;"></div>
<script>
const bingApiUrl = 'http://www.bing.com/api/maps/mapcontrol?key=' + m4h.keys.bing + '&callback=initBingMap',
const bingApiUrl = 'https://www.bing.com/api/maps/mapcontrol?key=' + m4h.keys.bing + '&callback=initBingMap',
bingScriptElement = document.createElement('script');
bingScriptElement.setAttribute('src', bingApiUrl);
document.body.appendChild(bingScriptElement);
Expand Down
2 changes: 1 addition & 1 deletion examples/create-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ <h2>Google Maps API</h2>
<h2>Bing Maps Control API</h2>
<div id="bing-maps-api-map" style="width: 600px; height: 450px;"></div>
<script>
const bingApiUrl = 'http://www.bing.com/api/maps/mapcontrol?key=' + m4h.keys.bing + '&callback=initBingMap',
const bingApiUrl = 'https://www.bing.com/api/maps/mapcontrol?key=' + m4h.keys.bing + '&callback=initBingMap',
bingScriptElement = document.createElement('script');
bingScriptElement.setAttribute('src', bingApiUrl);
document.body.appendChild(bingScriptElement);
Expand Down
3 changes: 1 addition & 2 deletions examples/multiple-location-markers.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h2>Google Maps API</h2>
<h2>Bing Maps Control API</h2>
<div id="bing-maps-api-map" style="width: 600px; height: 450px;"></div>
<script>
const bingApiUrl = 'http://www.bing.com/api/maps/mapcontrol?key=' + m4h.keys.bing + '&callback=initBingMap',
const bingApiUrl = 'https://www.bing.com/api/maps/mapcontrol?key=' + m4h.keys.bing + '&callback=initBingMap',
bingScriptElement = document.createElement('script');
bingScriptElement.setAttribute('src', bingApiUrl);
document.body.appendChild(bingScriptElement);
Expand Down Expand Up @@ -248,7 +248,6 @@ <h2>MapKit JS (Apple Maps) API</h2>
];
locations.forEach((location) => {
let marker = new mapkit.MarkerAnnotation(new mapkit.Coordinate(location.lat, location.lng));
console.log(marker);
map.addAnnotation(marker);
});
}
Expand Down
2 changes: 1 addition & 1 deletion examples/single-location.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ <h2>Google Maps API</h2>
<h2>Bing Maps Control API</h2>
<div id="bing-maps-api-map" style="width: 600px; height: 450px;"></div>
<script>
const bingApiUrl = 'http://www.bing.com/api/maps/mapcontrol?key=' + m4h.keys.bing + '&callback=initBingMap',
const bingApiUrl = 'https://www.bing.com/api/maps/mapcontrol?key=' + m4h.keys.bing + '&callback=initBingMap',
bingScriptElement = document.createElement('script');
bingScriptElement.setAttribute('src', bingApiUrl);
document.body.appendChild(bingScriptElement);
Expand Down

0 comments on commit 657b0c1

Please sign in to comment.