@@ -71,7 +71,7 @@ class Map extends Field
71
71
72
72
protected ?Closure $ placeUpdatedUsing = null ;
73
73
74
- protected Closure |string $ mapType = 'roadmap ' ;
74
+ protected Closure |string $ type = 'roadmap ' ;
75
75
76
76
protected Closure |array $ drawingModes = [
77
77
'marker ' => true ,
@@ -822,9 +822,9 @@ public function getMapConfig(): string
822
822
'debug ' => $ this ->getDebug (),
823
823
'gmaps ' => MapsHelper::mapsUrl (false , $ this ->getDrawingControl () ? ['drawing ' ] : []),
824
824
'polyOptions ' => $ this ->getPolyOptions (),
825
- 'rectangleOptions ' => $ this ->getRectangeOptions (),
825
+ 'rectangleOptions ' => $ this ->getRectangleOptions (),
826
826
'circleOptions ' => $ this ->getCircleOptions (),
827
- 'mapType ' => $ this ->getMapType (),
827
+ 'mapType ' => $ this ->getType (),
828
828
]);
829
829
830
830
//ray($config);
@@ -887,15 +887,15 @@ public function getCircleOptions(): ?array
887
887
return $ this ->evaluate ($ this ->circleOptions );
888
888
}
889
889
890
- public function mapType (Closure |string $ mapType ): static
890
+ public function type (Closure |string $ type ): static
891
891
{
892
- $ this ->mapType = $ mapType ;
892
+ $ this ->type = $ type ;
893
893
894
894
return $ this ;
895
895
}
896
896
897
- public function getMapType (): string
897
+ public function getType (): string
898
898
{
899
- return $ this ->evaluate ($ this ->mapType );
899
+ return $ this ->evaluate ($ this ->type );
900
900
}
901
901
}
0 commit comments