Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maputnik as local editing tool #6

Closed
lukasmartinelli opened this issue Sep 26, 2016 · 2 comments
Closed

Maputnik as local editing tool #6

lukasmartinelli opened this issue Sep 26, 2016 · 2 comments

Comments

@lukasmartinelli
Copy link
Collaborator

lukasmartinelli commented Sep 26, 2016

It is quite easy to package Maputnik into an Electron app (or https://github.com/miketheprogrammer/go-thrust executable).

This means we have the following advantages:

  • Directly interact with the file on disk
    • Better integration with GIT
    • Perhaps support file watching to reload even if you change the file with your editor
  • Access to internal and local vector tile servers

I want to keep the web version (with local storage support) because I think for most people this will be a cool way to play around with maps and get to know vector tiles.
This is just about packaging it up as a binary with embedded chromium.
Or run it as local server and open a web page in the browser.

Links:

@lukasmartinelli
Copy link
Collaborator Author

Better to just have a binary people can download an run and then they visit the editor in the browser (than embedding a browser itself).

The desktop/server executable is in a different repo since it really is just wrapping around the actual web based editor: https://github.com/maputnik/desktop

With Golang cross platform is really easy (and embedding works also well).
Right now https://github.com/maputnik/desktop just embeds the built JavaScript application bundle.

But it also exposes a local style file to the editor so it can edit it and can notify about file changes via websockets.

@lukasmartinelli lukasmartinelli changed the title Maputnik as local editing tool (embedded Chromium) Maputnik as local editing tool Sep 28, 2016
@lukasmartinelli
Copy link
Collaborator Author

lukasmartinelli commented Jan 4, 2017

This use case has been solved now. I am successfully editing local style JSONs.
Should add good documentation to the README for it though.

jsanz added a commit to jsanz/ems-basemap-editor that referenced this issue Jul 30, 2020
nyurik pushed a commit that referenced this issue Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant