Hajk

A modern, full-featured OpenLayers based map viewer and editor

Github stars Tracking Chart

Hajk 3

An open source web GIS solution based on OpenLayers

alt text

For developer info, see CONTRIBUTING.md.

The old Hajk 2 documentation with detailed installation instructions (Swedish only) is now in a separate readme.

Quick start

Note that Hajk consists of 3 applications: the main 'client' (which is the web map front end), 'admin' (which basically is a frontend for client's configuration files) and 'mapservice' (the backend server application which has a REST API).

  1. Clone the repository: git clone https://github.com/hajkmap/Hajk.git.
  2. The client app is configured by editing new-client/public/appConfig.json. Make sure that mapserviceBase is a valid URL to a running instance of MapService that is reachable from your computer (see the following steps for how to deploy a working backend).
  3. The client application resides inside new-client, so you can do: cd new-client and then npm i && npm start. (Note that if you have not yet configured a working backend in appConfig.json, you will get an error here – don't worry, we'll fix that soon.)
  4. The admin application is located in new-admin. To get it running do cd new-admin && npm i && npm start.
  5. The client and admin are accompanied by a backend (and an optional proxy) written in .NET. Open both projects in Visual Studio (in mapservice and util if you need a proxy), then Build and Publish.
  6. Deploy to IIS, make sure that everything is running (choose "Browse" from IIS to see the mapservice page that lists available commands - if you see that, you're good to go). Make sure that the URL your mapservice is running on is the same as specified in client's appConfig.json.
  7. Now you should have client running on localhost:3000 and admin on localhost:3001. Open a browser window and check them out!

To build admin or client, just do npm run build instead of npm start. This will create a subfolder (build) that you can rename and serve as static files from any web server.

If you plan to develop for Hajk, make sure to read the next section on code standard for the project.

Main metrics

Overview
Name With Ownerhajkmap/Hajk
Primary LanguageJavaScript
Program languageC# (Language Count: 5)
Platform
License:MIT License
所有者活动
Created At2016-02-10 07:41:11
Pushed At2025-05-10 06:38:23
Last Commit At2025-04-04 10:39:23
Release Count73
Last Release Namev4.0.0 (Posted on )
First Release Name2.0.0-RC1 (Posted on )
用户参与
Stargazers Count127
Watchers Count15
Fork Count49
Commits Count5.9k
Has Issues Enabled
Issues Count899
Issue Open Count180
Pull Requests Count647
Pull Requests Open Count3
Pull Requests Close Count59
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private