Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Traineratwot committed Feb 5, 2024
2 parents 4f35072 + 7c991ad commit e905f37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to `filament-openstreetmap` will be documented in this file.

## 1.2.1 - 2024-01-23

**Full Changelog**: https://github.com/Traineratwot/filament-openstreetmap/compare/1.2...1.2.1

Added method `zoom(10)` for change zoom map

Improved dissable behavior

## 1.2.0 - 2024-01-22

**Full Changelog**: https://github.com/Traineratwot/filament-openstreetmap/compare/1.1.0...1.2.0
Expand Down
7 changes: 2 additions & 5 deletions src/Forms/Components/MapInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class MapInput extends Textarea
* @var 'Point'|'String'|'Array'
*/
public string $saveAs = 'String';

private Closure|int|float $zoom = 10;

/**
Expand Down Expand Up @@ -140,7 +141,7 @@ protected function parseInput(mixed $state): array
}

/**
* @param float|int|Closure $zoom 1-20 (default 10)
* @param float|int|Closure $zoom 1-20 (default 10)
* @return $this
*/
public function zoom(float|int|Closure $zoom): static
Expand All @@ -151,7 +152,6 @@ public function zoom(float|int|Closure $zoom): static
}

/**
* @param float|int|Closure $latitude
* @return $this
*/
public function latitude(float|int|Closure $latitude): static
Expand All @@ -162,7 +162,6 @@ public function latitude(float|int|Closure $latitude): static
}

/**
* @param float|int|Closure $longitude
* @return $this
*/
public function longitude(float|int|Closure $longitude): static
Expand All @@ -173,8 +172,6 @@ public function longitude(float|int|Closure $longitude): static
}

/**
* @param float|int|Closure $latitude
* @param float|int|Closure $longitude
* @return $this
*/
public function coordinates(float|int|Closure $latitude, float|int|Closure $longitude): static
Expand Down

0 comments on commit e905f37

Please sign in to comment.