I am currently working on a map project that involves adding shapes and locations onto the map and saving it.
However, I am encountering an issue with groundoverlay rotation.
Even though there is no built-in rotation property in the Google Maps documentation, I am looking for a way or trick to rotate the groundoverlay image using a different method.
Here's the code snippet:
var srcImage = "http://demo/image/uploads/demo.jpg";
var bounds = {
north: 44.599,
south: 44.490,
east: -78.443,
west: -78.649
}
var overlay = new google.maps.GroundOverlay(srcImage ,bounds);
overlay.setMap(map);
I am utilizing a slider to rotate the overlay.
$("#overlayslider").slider().on('slide',function(e){
var angle = e.newVal;
// I aim to rotate the overlay by the specified angle as per the slider
})
I have attempted to use projection but without success.
Any possible solutions or assistance would be greatly appreciated.
Your help is invaluable, thank you.