Skip to content

Add support to use manifest.js file in mapshaper-gui#512

Open
ThomasG77 wants to merge 1 commit intombloch:masterfrom
ThomasG77:support-manifest-mapshaper-gui
Open

Add support to use manifest.js file in mapshaper-gui#512
ThomasG77 wants to merge 1 commit intombloch:masterfrom
ThomasG77:support-manifest-mapshaper-gui

Conversation

@ThomasG77
Copy link

@ThomasG77 ThomasG77 commented Nov 11, 2021

With this PR, do

mapshaper-gui --manifest manifest.js and get a custom GUI using the existing manifest.js existing mechanism like below

Sélection_563

Follow-up to previous question from #511 and answer

Current limitation: do not deal with CORS issues like for URLs like https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_roads.zip
Also make options target, directSave, displayAll and quickView ignored due to overload by manifest.js file content
https://github.com/mbloch/mapshaper/blob/master/bin/mapshaper-gui#L204

Inherited from existing mechanism as https://mapshaper.org/?files=https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_roads.zip does not work whereas
https://mapshaper.org/?files=https://labs.webgeodatavore.com/partage/ne_10m_roads.zip works (same data, just with less limitations on CORS side)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant