ImageMapType is for your purpose. Read here: https://developers.google.com/maps/documentation/javascript/maptypes#ImageMapTypes
var myMapType = new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { return "http://maps.owm.io:8091/56ce0fcd4376d3010038aaa8/" + zoom + "/" + coord.x + "/" + coord.y + "?hash=5"; }, tileSize: new google.maps.Size(256, 256), maxZoom: 9, minZoom: 0, name: 'mymaptype' }); map.mapTypes.set('mymaptype', myMapType); map.setMapTypeId('mymaptype');
[update] Overlay imageMapType over current mapType
var map = new google.maps.Map(document.getElementById('map'), { center: {lat: -34.397, lng: 150.644}, zoom: 8 }); var myMapType = new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { return "http://maps.owm.io:8091/56ce0fcd4376d3010038aaa8/" + zoom + "/" + coord.x + "/" + coord.y + "?hash=5"; }, tileSize: new google.maps.Size(256, 256), maxZoom: 9, minZoom: 0, name: 'mymaptype' }); map.overlayMapTypes.insertAt(0, myMapType);

wf9a5m75
source share