Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #48 from Energon7/master
Browse files Browse the repository at this point in the history
Customizable tile subdomains
  • Loading branch information
mikebronner authored Mar 9, 2021
2 parents be72ac8 + 173fbdc commit 288b13e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
>
<l-tile-layer
:url="tileUrl"
:subdomains="field.subdomains"
></l-tile-layer>
<l-marker
:options="markerOptions"
Expand Down
5 changes: 5 additions & 0 deletions src/MapMarker.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ public function searchProvider(string $provider)
return $this->withMeta([__FUNCTION__ => $provider]);
}

public function tileSubdomains(array $arr = ['a','b','c'])
{
return $this->withMeta(['subdomains' => $arr ]);
}

public function searchProviderKey(string $key)
{
return $this->withMeta([__FUNCTION__ => $key]);
Expand Down

0 comments on commit 288b13e

Please sign in to comment.