Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion georeference/proxy_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_layer(self):
try:
link = GeoreferencedDocumentLink.objects.get(document=self.id)
layer = Layer.objects.get(id=link.object_id)
except (GeoreferencedDocumentLink.DoesNotExist, Layer.DoesNotExist):
except (GeoreferencedDocumentLink.DoesNotExist, Layer.DoesNotExist, GeoreferencedDocumentLink.MultipleObjectsReturned):
layer = None
return layer

Expand Down Expand Up @@ -454,6 +454,7 @@ def serialize(self):
"status": self.status,
"urls": self.get_extended_urls(),
"lock": self.lock.as_dict,
"mask_coords": self.mask_coords,
}

def get_info_panel_content(resourceid):
Expand Down
338 changes: 108 additions & 230 deletions loc_insurancemaps/components/package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion loc_insurancemaps/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"svelte": "^3.0.0"
},
"dependencies": {
"ol": "^6.4.3",
"ol": "^6.15.1",
"ol-ext": "^3.2.28",
"sirv-cli": "^1.0.0",
"svelte-dragdroplist": "^1.1.1",
"svelte-tablesort": "^1.1.0"
Expand Down
6 changes: 4 additions & 2 deletions loc_insurancemaps/components/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ function componentExportDetails(componentName) {
output: {
sourcemap: true,
format: 'iife',
name: `${componentName.toLowerCase()}`,
file: `public/build/${componentName}.js`,
name: `${componentName.toLowerCase()}`,
file: `public/build/${componentName}.js`,
inlineDynamicImports: true,
},
plugins: [
svelte({
Expand Down Expand Up @@ -84,6 +85,7 @@ let exportable = [];
"Volumes",
"Volume",
"VolumeSearch",
"MultiTrim",
].forEach((d) => exportable.push(componentExportDetails(d)));

export default exportable;
Loading