דלג לתוכן הראשי

ייצוא מפה

פונקציה זו מאפשרת לייצא את המפה הנוכחית

govmap.showExportMap();

כדי לסגור את החלון, ניתן להשתמש בפונקציה הבאה

govmap.closeExportMap();

דוגמה:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="https://www.govmap.gov.il/govmap/api/govmap.api.js" defer onload="initGovMap()"></script>
<script type="text/javascript">
function initGovMap() {
govmap.createMap('map', {
token: 'YOUR_API_TOKEN',
layers: ["GASSTATIONS","PARCEL_HOKS", "KSHTANN_ASSETS", "bus_stops", "PARCEL_ALL"],
showXY: true,
identifyOnClick: true,
isEmbeddedToggle: false,
background: "1",
layersMode: 1,
zoomButtons:false
});
}
function showExample(){
govmap.showExportMap();
}
function closeExample(){
govmap.closeExportMap();
}
</script>
</head>
<body>
<div id="map" style="width:600px;height:600px;"></div>
<button onClick="showExample()">Show Example</button>
<button onClick="closeExample()">Close Example</button>
</body>
</html>