Skip to content

Commit f36745c

Browse files
committed
feat: add OSM tilemap as default to search map for now
1 parent c68bd4f commit f36745c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ckanext/spatial/public/js/spatial_query.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ this.ckan.module('spatial-query', function ($, _) {
44

55
return {
66
options: {
7+
map_config: {
8+
type: "custom",
9+
"custom_url": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
10+
"attribution": "&copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"
11+
},
712
i18n: {
813
},
914
style: {
@@ -187,7 +192,7 @@ this.ckan.module('spatial-query', function ($, _) {
187192
this.options.map_config,
188193
{
189194
attributionControl: false,
190-
drawControlTooltips: false
195+
drawControlTooltips: false,
191196
}
192197
);
193198

0 commit comments

Comments
 (0)