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

Commit 288b13e

Browse files
authored
Merge pull request #48 from Energon7/master
Customizable tile subdomains
2 parents be72ac8 + 173fbdc commit 288b13e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

dist/js/field.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/FormField.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@
218218
>
219219
<l-tile-layer
220220
:url="tileUrl"
221+
:subdomains="field.subdomains"
221222
></l-tile-layer>
222223
<l-marker
223224
:options="markerOptions"

src/MapMarker.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ public function searchProvider(string $provider)
108108
return $this->withMeta([__FUNCTION__ => $provider]);
109109
}
110110

111+
public function tileSubdomains(array $arr = ['a','b','c'])
112+
{
113+
return $this->withMeta(['subdomains' => $arr ]);
114+
}
115+
111116
public function searchProviderKey(string $key)
112117
{
113118
return $this->withMeta([__FUNCTION__ => $key]);

0 commit comments

Comments
 (0)