more paths possible
This commit is contained in:
parent
baa83bb275
commit
8881a906b1
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@
|
|||
$propbag->add('default', 'all');
|
||||
break;
|
||||
case 'path':
|
||||
$propbag->add('type', 'string');
|
||||
$propbag->add('type', 'text');
|
||||
$propbag->add('name', PLUGIN_EVENT_OSM_PATH);
|
||||
$propbag->add('description', PLUGIN_EVENT_OSM_PATH_DESC);
|
||||
$propbag->add('default', '');
|
||||
|
|
|
@ -18,7 +18,7 @@ window.onload = () => {
|
|||
|
||||
const data = divMap.dataset;
|
||||
const entries = geo.entries.filter(x => ["all", "none"].includes(data.category) || x.categories.includes(data.category));
|
||||
const uploads = geo.uploads.filter(x => x.url.startsWith(data.path));
|
||||
const uploads = geo.uploads.filter(x => data.path.split("\n").some(y => x.url.startsWith(y)));
|
||||
const features = entries.map((entry, id) => {
|
||||
const feature = new ol.Feature(new ol.geom.Point(ol.proj.fromLonLat(entry.pos.reverse())));
|
||||
feature.setId(id);
|
||||
|
|
Loading…
Reference in a new issue