Skip to content

dp7x/freemap-v3-react

 
 

Repository files navigation

Freemap v3

Next version of web portal maintained by Slovak OpenStreetMap community.

Features:

  • maps rendered specifically for Slovakia (map of touristic trails, map of cycle routes and cross-country ski map)
  • picture gallery
  • various tools (searching, measurement, route planning, changesets, ...)

Requirements

Compiling and running in development mode

  1. Add local.freemap.sk to 127.0.0.1 in your system hosts file (for Linux and MacOS it is /etc/hosts).

  2. Install the necessary libs:

    npm i
  3. Run webserver which also compiles the source files on change:

    npm start
  4. Install development CA certificate to your browser.

  5. Open the application by visiting https://local.freemap.sk:9000/.

Compiling for the production

Set DEPLOYMENT to:

  • dev (default) for local.freemap.sk
  • next for next.freemap.sk
  • www for www.freemap.sk
npm i
DEPLOYMENT=next ./node_modules/.bin/webpack

You'll then find all static web resources in dist directory.

Other env varialbes

  • FM_MAPSERVER_URL - base URL of Mapnik Mapserver (without trailing slash); for example http://localhost:4000 for development

Translation

Files:

About

Freemap Slovakia web application (www.freemap.sk)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.0%
  • Other 3.0%