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

Commit

Permalink
Customizable tile subdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
Energon7 committed Mar 9, 2021
1 parent be72ac8 commit 173fbdc
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 173fbdc

Please sign in to comment.