Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix geosolutions-it#1325. Get only main map svg
Browse files Browse the repository at this point in the history
offtherailz committed Dec 6, 2016
1 parent f703b6f commit c9f6493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/client/components/map/leaflet/snapshot/GrabMap.jsx
Original file line number Diff line number Diff line change
@@ -135,7 +135,8 @@ let GrabLMap = React.createClass({
var leftString = window.getComputedStyle(this.mapDiv).getPropertyValue("left");

// get all the informations needed to snap svg before
let svgs = this.mapDiv.getElementsByTagName("svg");
let obejctDiv = this.mapDiv.querySelector(":scope > .leaflet-map-pane .leaflet-objects-pane");
let svgs = obejctDiv && obejctDiv.getElementsByTagName("svg");
let svg = svgs && svgs[0];
let svgH;
let svgW;

0 comments on commit c9f6493

Please sign in to comment.