I am having a problem with the embedded custom google maps with iframe
.
It gives the error as below.
does not permit cross-origin framing.
And I want to change the content of the iframe
to a "map cannot be displayed" picture. Or is there a built in trigger for the api, to send an error, not a blank iframe
?
My event handling looks like this:
if ($("#mapframe>iframe").contents().find('body').html().length == 0) {
$(this).contents().find('body').html('<h1>Üres</h1>');
}