I have a tile overlay on google map.I would like to shade or fill color the tile(10,15) as red.I here by attached the image how the result should be. here is the link to my code .https://jsfiddle.net/60fhd57b/3/
function CoordMapType(tileSize) {
this.tileSize = tileSize;
}
CoordMapType.prototype.getTile = function(coord, zoom, ownerDocument) {
var div = ownerDocument.createElement('div');
div.innerHTML = coord;
div.style.width = this.tileSize.width + 'px';
div.style.height = this.tileSize.height + 'px';
div.style.fontSize = '10';
div.style.borderStyle = 'solid';
div.style.borderWidth = '1px';
div.style.borderColor = '#AAAAAA';
return div;
};
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 5,
center: {lat: 41.850, lng: -87.650}
});
map.overlayMapTypes.insertAt(
0, new CoordMapType(new google.maps.Size(200, 200)));
}
