From a46d8d924572f8c988a739a01b1166af79651d7f Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Thu, 7 May 2020 18:58:24 -0700 Subject: [PATCH] Fixed zoom. --- src/main/lemondronor/advisorycircular/adsbx.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/lemondronor/advisorycircular/adsbx.cljs b/src/main/lemondronor/advisorycircular/adsbx.cljs index d2ea177..6335fb4 100644 --- a/src/main/lemondronor/advisorycircular/adsbx.cljs +++ b/src/main/lemondronor/advisorycircular/adsbx.cljs @@ -72,8 +72,8 @@ (if-let [user-agent (:user-agent options)] (.setUserAgent page user-agent)) (log-debug "Navigating") - (let [url (gstring/format "https://tar1090.adsbexchange.com/?icao=%s&zoom=%s&noIsolation&hideButtons&hideSidebar&monochromeMarkers=ffff55&monochromeTracks=010101&outlineColor=505050" icao (get options :zoom 14))] - (log-info "Getting screenshot at url %s with zoom %s" url (get options :zoom 14)) + (let [url (gstring/format "https://tar1090.adsbexchange.com/?icao=%s&zoom=%s&noIsolation&hideButtons&hideSidebar&monochromeMarkers=ffff55&monochromeTracks=010101&outlineColor=505050" icao (or (:zoom options) 14))] + (log-info "Getting screenshot at url %s with zoom %s" url (or (:zoom options) 14)) (p/all [(.waitForNavigation page) (.goto page url