How to shade a province or district on my Maps with PHP-Javascript

0

I have a code that shows me the point I am requesting (with its latitude and longitude), but what I would like to know is that if you can shade a particular province or district, and of a particular color:

 <!DOCTYPE html>
 <html>
 <head>
  <title> INSERTAR MAPA EN GOOGLE MAPS</title>


  <script src="http://maps.googleapis.com/maps/api/js"> </script>

  <script>

  function init(){
  var mapOption = {
   center: new google.maps.LatLng(-12.06244,-77.12272),
   zoom: 15,
   mapTypeId:google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById("map"),mapOption);

  // Marcador 1
  var marker = new google.maps.Marker({
    position: { lat: -12.06244, lng: -77.12272 }, // coodernadas del marcador 1
   icon: 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png',
   });
   marker.setMap(map);

   }

 google.maps.event.addDomListener(window, 'load', init);

 </script>


 </head>
  <body>

   <div id="map" style="width:1000px; height: 800px; border: solid; border-color: #00FFFF  "></div>


 </body>
</html>

Could it be shaded?

    
asked by Kevincs7 12.11.2018 в 21:18
source

0 answers