I have my display divided in two parts: upper part, 70%, is a Google map with API loaded via
<script src="https://maps.googleapis.com/maps/api/jskey=API_KEY&callback=initMap" async defer></script>
at the bottom I would like to have a chart which I have to load with
<script type='text/javascript' src='https://www.gstatic.com/charts/loader.js'></script>
google.charts.load('current', {packages: ['corechart']});
google.charts.setOnLoadCallback(drawChart);
However, I have an error:
Blocked a frame with origin from accessing a cross-origin frame
My Google Map script worked perfectly well, then I have decided to add a chart to it.
I have XAMPP installed and am testing my code on localhost.
My questions are:
- Is it possible to load libraries in this way, or do I have to change my 'map' part to the 'visualization' library?
- Does the above error come from loading APIs from different places?
- How do I combine the sophistication of Google Maps API and Geometry with charts?