On remplace l'appel à l'API Google Maps par une simple image : le client est roi...

This commit is contained in:
2020-11-03 09:03:20 +01:00
parent 38229aac4b
commit 27fb92d46e
2 changed files with 41 additions and 52 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@@ -25,18 +25,12 @@
</a>
#INCLURE "template/header.html"
<div class="pane pane--left" data-pane="left">
<div class="pane__inner pane-header pane-header--about">
<div class="bg-vid gmap" style="background-image: url(#FICHIER)" data-address="3 rue Saint-Charles 75015 Paris">
<!-- Google Map -->
</div>
<!-- <div class="bg-vid gmap" style="background-image: url(#FICHIER)" data-address="3 rue Saint-Charles 75015 Paris">-->
<!-- </div>-->
<img src="template/img/google-map.jpg" style="">
</div>
</div>
@@ -176,51 +170,46 @@ var response = grecaptcha.getResponse();
<!--<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyALU_RxhZsMoCOu4AEebd6QxoLGBa-kq9k"></script>-->
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyAkr2nRW4omYz4xCD0-DQdHPilpPO6T8u0"></script>
<!--<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyAkr2nRW4omYz4xCD0-DQdHPilpPO6T8u0"></script>-->
<!--<script src="template/js/gmap3.js"></script>-->
<script src="template/js/gmap3.js"></script>
<!--<script type="text/javascript">-->
<script type="text/javascript">
$(document).ready( function(){
initGmap();
function initGmap(){
var maplocation = $(".gmap").attr("data-address");
jQuery(".gmap").gmap3({
marker: {
address: maplocation,
options: {
icon: "template/img/map-pin.png"
}
},
map:{
options:{
zoom: 17,
zoomControl: true,
mapTypeControl: false,
scaleControl: false,
scrollwheel: false,
navigationControl: true,
streetViewControl: false,
draggable: true,
styles: [
{
"featureType":"all",
"elementType":"all",
"stylers":[
{ "saturation":"-70" }
]
}]
}
}
});
}
});
</script>
<!--$(document).ready( function(){-->
<!--initGmap();-->
<!--function initGmap(){-->
<!--var maplocation = $(".gmap").attr("data-address");-->
<!--jQuery(".gmap").gmap3({-->
<!--marker: {-->
<!--address: maplocation,-->
<!--options: {-->
<!--icon: "template/img/map-pin.png"-->
<!--}-->
<!--},-->
<!--map:{-->
<!--options:{-->
<!--zoom: 17,-->
<!--zoomControl: true,-->
<!--mapTypeControl: false,-->
<!--scaleControl: false,-->
<!--scrollwheel: false,-->
<!--navigationControl: true,-->
<!--streetViewControl: false,-->
<!--draggable: true,-->
<!--styles: [-->
<!--{-->
<!--"featureType":"all",-->
<!--"elementType":"all",-->
<!--"stylers":[-->
<!--{ "saturation":"-70" }-->
<!--]-->
<!--}]-->
<!--}-->
<!--}-->
<!--});-->
<!--}-->
<!--});-->
<!--</script>-->
</body>
</html>