maplibre / maputnik

An open source visual editor for the 'MapLibre Style Specification'
https://www.maplibre.org/maputnik
MIT License
2.02k stars 380 forks source link

Why does https://maplibre.org/maputnik fetch http://localhost:8000/styles ? #864

Closed zstadler closed 3 months ago

zstadler commented 5 months ago

To reproduce:

HarelM commented 5 months ago

Seems like this is related to the desktop communication. See here: https://github.com/maplibre/maputnik/blob/1da65f2116e5643c9bf06056c7ca463e41ada523/src/libs/apistore.ts#L22 There's a mod of operation where the style is stored in a "backend" and not it local storage.

Should this be converted to a discussion or is there an issue you have encountered that is problematic?

Also the console log is somewhat descriptive I think: image

zstadler commented 5 months ago

There is no functional issue, but it is strange. I didn't expect to see any desktop-related functionality in the web site. Was there a discussion about on-boarding the desktop?

HarelM commented 5 months ago

There was a discussion on desktop to some extent here: https://github.com/maplibre/maplibre/issues/352 Currently, desktop is created as part of the CI of the web, I'm guessing that their functionality is not "separated" enough. A build flag is what I would expect in this kind of scenario, it might be that I overlooked it when migrating to vite.

zstadler commented 5 months ago

Should a new discussion on Maputnik Desktop be done in this repository, or in the MapLibre organization level?

HarelM commented 5 months ago

Depending on what you would like to achieve. I personally don't think anything else is needed in term of migrating a repository, as I see the desktop a "nice to have" king of a feature. Having said that, if someone is willing to maintain it, s.he could open an on boarding issue and explain why this part should be in maplibre. There's also another option to move this part of the code into this repo, but again, it will require someone who understands the code and would like to continue maintaining it.

Maintainence and maintainer are the key word here I guess.

nyurik commented 5 months ago

I think desktop should be part of this repo, e.g. /desktop, but only if someone can create a pr that:

zstadler commented 5 months ago

I feel that in addition, the Maputnik Desktop also requires some UX changes.

For example when "watching" a local file and then opening a different file from the app, the first file is overwritten with the contents of the second file. Luckily for me, I had the first file also opened in an editor, so I was able to recover.

There is another option for the future of Desktop:

I agree with @nyurik that any future support of desktop requires someone to prepare a PR.