@@ -71,7 +71,7 @@ class Map extends Field
7171
7272 protected ?Closure $ placeUpdatedUsing = null ;
7373
74- protected Closure |string $ mapType = 'roadmap ' ;
74+ protected Closure |string $ type = 'roadmap ' ;
7575
7676 protected Closure |array $ drawingModes = [
7777 'marker ' => true ,
@@ -822,9 +822,9 @@ public function getMapConfig(): string
822822 'debug ' => $ this ->getDebug (),
823823 'gmaps ' => MapsHelper::mapsUrl (false , $ this ->getDrawingControl () ? ['drawing ' ] : []),
824824 'polyOptions ' => $ this ->getPolyOptions (),
825- 'rectangleOptions ' => $ this ->getRectangeOptions (),
825+ 'rectangleOptions ' => $ this ->getRectangleOptions (),
826826 'circleOptions ' => $ this ->getCircleOptions (),
827- 'mapType ' => $ this ->getMapType (),
827+ 'mapType ' => $ this ->getType (),
828828 ]);
829829
830830 //ray($config);
@@ -887,15 +887,15 @@ public function getCircleOptions(): ?array
887887 return $ this ->evaluate ($ this ->circleOptions );
888888 }
889889
890- public function mapType (Closure |string $ mapType ): static
890+ public function type (Closure |string $ type ): static
891891 {
892- $ this ->mapType = $ mapType ;
892+ $ this ->type = $ type ;
893893
894894 return $ this ;
895895 }
896896
897- public function getMapType (): string
897+ public function getType (): string
898898 {
899- return $ this ->evaluate ($ this ->mapType );
899+ return $ this ->evaluate ($ this ->type );
900900 }
901901}
0 commit comments