dom-to-image icon indicating copy to clipboard operation
dom-to-image copied to clipboard

Doesn't work with google maps

Open amgadfahmi opened this issue 8 years ago • 3 comments

Am trying to apply it for a div contain angular google maps and getting the following error

XMLHttpRequest cannot load https://maps.googleapis.com/maps/api/js/StaticMapService.GetMapImage?1m2&1i813&2i677&2e2&3u3&4m2&1u763&2u400&5m5&1e3&5sen&6sus&10b1&12b1&token=47416. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

      <div  class="analysisMapContainer" id="map">
            <ui-gmap-google-map center='map.center' zoom='map.zoom'  control="map.control" options="map.options" >
            <ui-gmap-map-control template="refresh.tpl.html" position="top-right" index="1" controller="refreshController" ></ui-gmap-map-control>
            <ui-gmap-layer namespace="visualization" type="HeatmapLayer" show="map.showData" onCreated="map.heatLayerCallback"></ui-gmap-layer>
            </ui-gmap-google-map>
        </div>

amgadfahmi avatar Sep 04 '16 12:09 amgadfahmi

+1

spaceghostu avatar Oct 25 '16 06:10 spaceghostu

+1

w-up avatar Oct 31 '19 09:10 w-up

using leaflet i am able to capture the base map only, but i wanted to include markers as well

lewisMachilika avatar Nov 14 '21 05:11 lewisMachilika