From 8e84a142c7d0426f1abcaf5b419627e053f7bf7d Mon Sep 17 00:00:00 2001 From: ='fauz <='fauzgabriel@gmail.com> Date: Thu, 3 Jul 2025 00:41:31 +0700 Subject: [PATCH] map dropdown --- app/__pycache__/mapController.cpython-313.pyc | Bin 6971 -> 6994 bytes app/mapController.py | 5 +- templates/index.html | 148 ++++++++++-------- templates/map.html | 2 - 4 files changed, 85 insertions(+), 70 deletions(-) diff --git a/app/__pycache__/mapController.cpython-313.pyc b/app/__pycache__/mapController.cpython-313.pyc index 57e6f3a3e65a182b670c2e0b9dc287368610d627..55efff628543e75d2c1444060716961679822d30 100644 GIT binary patch delta 735 zcmY*XOK1~O6us}gc{BMxXjO<4YEh&MiwhZK2D=jK zZxMHfLC8h~7t*c9Rb3^zb0-wKsNgoc*tF2B;(f{BXJ8KJo^$SdcP{g}_`Rt1R5b+n z$Q$?WfBc|s)155>@EX!!L4|O1{zaQuP{ZOmMjUaksRS z80q&^IzG`qW>Q@1pD@{oo*rx76`r|!8}EEJQ;x#B7(!D)*o&0qP)iQ4l#Ett0W%!Kbmi0M6@+>VJe9I+}#7hrfw;xXo4 oBueCR^J_w<^3Y6sKc+7w;>0+bj}YxBr4sGr>;pn%r;2UA0pY5hGynhq delta 696 zcmZWlO=uHA82x5uXY;$wX0tJ|Nt>v_mWremj3Hnp5km!Q#ce_nJQS)3%Ay` zdNT~dst9@!kCu2)yqI|PqEIP%>n%5JQ!uCaO}d_(!{dE#-uJ`%R`^)Zb~P;s_#Tz7 z-FUd6ty13#0eAxA;;|ZEvx!A(#3CFW4SJfEN&w3$fW?L^4zNJ8uwYmUy7+%CRk~KH z=ptFDK@94&&gx2?H+UZB#b9n4z@{~1p00R$3UyXnWB4KM%#-~9cPYT_b4!bPdWp{C z=^@BMgW23xupaYjMb3HAUB(>`PE|Dc5U%iGn}^D?W?PSxi|Ka8FZo13>eC!8 z?E;ZlRHZ)aL%qZOsC2YoCC@sEk;)Y7Oz}#-^@B6YGdOypwe5RBQ;var7={y(OqURq z5EIXW1!9V?!6HeBU?@*cwo0L^VPXh3v8u}%jts;xCB(&e@*eu0C(n>->t`}X)!}DG a^hT>motQg0?A%Ff#MnE0ixAbRW7}VJWtb8G diff --git a/app/mapController.py b/app/mapController.py index 28e7537..f8dff3e 100644 --- a/app/mapController.py +++ b/app/mapController.py @@ -21,7 +21,9 @@ def swap_latlon(coords): def swap_latlon2(coords): try: sample = coords[0][0][0] - if not (-180 <= sample[0] <= 180 and -90 <= sample[1] <= 90): + lat, lon = sample + # if not (-180 <= sample[0] <= 180 and -90 <= sample[1] <= 90): + if -90 <= lat <= 90 and -180 <= lon <= 180: return [ [ [ @@ -30,7 +32,6 @@ def swap_latlon2(coords): ] for polygon in coords ] else: - # Sudah benar [lon, lat] return coords except Exception as e: print(f"[swap_latlon] Error during coordinate swap: {e}") diff --git a/templates/index.html b/templates/index.html index 8fddd96..71105a9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -119,11 +119,11 @@
-
+ @@ -154,11 +154,11 @@
-
+