File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,14 @@ protected function getMapImage(): Image
164
164
return $ image ;
165
165
}
166
166
167
+ /**
168
+ * get attribution text
169
+ * @return string Attribution text
170
+ */
171
+ protected function getAttributionText () {
172
+ return '© OpenStreetMap contributors ' ;
173
+ }
174
+
167
175
/**
168
176
* Draw OpenStreetMap attribution at the right bottom of the image
169
177
* @param Image $image The image of the map
@@ -174,7 +182,7 @@ protected function drawAttribution(Image $image): Image
174
182
$ margin = 5 ;
175
183
$ attribution = function (Image $ image , $ margin ): array {
176
184
return $ image ->writeTextAndGetBoundingBox (
177
- ' © OpenStreetMap contributors ' ,
185
+ $ this -> getAttributionText () ,
178
186
__DIR__ . '/resources/font.ttf ' ,
179
187
10 ,
180
188
'0078A8 ' ,
You can’t perform that action at this time.
0 commit comments