SO 21421437

removing or coloring equator and international date-line in google maps api

HTML

<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<div id="map-canvas"></div>

CSS

#map-canvas {
    height: 300px;
    width: 300px;
    background-color: gray;
}

JavaScript

function initialize() {
    google.maps.visualRefresh = true;
var map = new google.maps.Map(document.getElementById('map-canvas'), {
 zoom: 2,
 center: new google.maps.LatLng(19.4328, -99.1333),
 mapTypeControl: false,
 scaleControl: false,
 streetViewControl: false,
 overviewMapControl: false
 });

 var mapStyle = [
      {
         featureType: "administrative",
         elementType: "geometry.fill",
         stylers: [
            //{ visibility: "off" }
         ]
       } 
  ];
 var styledMap = new google.maps.StyledMapType(mapStyle);
 map.mapTypes.set('myCustomMap', styledMap);
 map.setMapTypeId('myCustomMap');

}

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