File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ type SearchedProperty = {
6666
6767const MIN_MAP_ZOOM = 10 ;
6868const MAX_MAP_ZOOM = 20 ;
69- const MAX_TILE_ZOOM = 16 ;
7069
7170const layers = [
7271 'vacant_properties_tiles_polygons' ,
@@ -193,7 +192,6 @@ const PropertyMap: FC<PropertyMapProps> = ({
193192 coordinates : [ - 75.1628565788269 , 39.97008211622267 ] ,
194193 address : '' ,
195194 } ) ;
196- const [ smallScreenToggle , setSmallScreenToggle ] = useState < boolean > ( false ) ;
197195
198196 useEffect ( ( ) => {
199197 const protocol = new Protocol ( ) ;
@@ -491,7 +489,7 @@ const PropertyMap: FC<PropertyMapProps> = ({
491489 proximity = { [
492490 {
493491 type : 'fixed' ,
494- coordinates : [ - 75.1652 , 39.9526 ] , // Approxiate center of Philadelphia
492+ coordinates : [ - 75.1652 , 39.9526 ] , // Approximate center of Philadelphia
495493 } ,
496494 ] }
497495 onPick = { ( feature ) => {
@@ -504,6 +502,7 @@ const PropertyMap: FC<PropertyMapProps> = ({
504502 } ) ;
505503 map ?. easeTo ( {
506504 center : feature . center ,
505+ zoom : 16 ,
507506 } ) ;
508507 }
509508 } }
You can’t perform that action at this time.
0 commit comments