more paths possible

This commit is contained in:
surrim 2020-02-27 02:36:21 +01:00
parent baa83bb275
commit 8881a906b1
2 changed files with 2 additions and 2 deletions

View file

@ -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', '');

View file

@ -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);