Skip to content

Commit 4c235b8

Browse files
fix(routes/index): remove map projection skew
This patch removes some weird rotation from the default map projection that seemed unnecessary. This was simply copied over from the example and I'm not sure if it is necessary. Perhaps it resulted in a more accurate map previously, but I like the way that it looks now better and accuracy is not a large concern for this particular map application.
1 parent 91a79a7 commit 4c235b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes/_index/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function Map({ className }: { className?: string }) {
9999
<div className={cn('flex justify-center items-center', className)}>
100100
<ComposableMap
101101
className='object-scale-down max-w-full max-h-full'
102-
projectionConfig={{ rotate: [-10, 0, 0], scale: 147 }}
102+
projectionConfig={{ scale: 147 }}
103103
width={800}
104104
height={400}
105105
>

0 commit comments

Comments
 (0)