<!DOCTYPE html> <html lang="pl" style="height: 100%;"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <meta http-equiv="x-ua-compatible" content="IE=11"/> <title>Geowidget v4 - Example - Modal Map</title> <script src="https://geowidget.easypack24.net/js/sdk-for-javascript.js"></script> <script type="text/javascript"> window.easyPackAsyncInit = function () { easyPack.init({ defaultLocale: 'pl', mapType: 'osm', searchType: 'osm', points: { types: ['parcel_locker'] }, map: { initialTypes: ['parcel_locker'] } }); }; function openModal() { easyPack.modalMap(function(point, modal) { modal.closeModal(); console.log(point); }, { width: 500, height: 600 }); } </script> <link rel="stylesheet" href="https://geowidget.easypack24.net/css/easypack.css"/> </head> <body> <button onclick="openModal(); return false;">Open Popup</button> </body> </html>