Hajk

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

Github星跟踪图

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.

主要指标

概览
名称与所有者hajkmap/Hajk
主编程语言JavaScript
编程语言C# (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2016-02-10 07:41:11
推送于2025-05-10 06:38:23
最后一次提交2025-04-04 10:39:23
发布数73
最新版本名称v4.0.0 (发布于 )
第一版名称2.0.0-RC1 (发布于 )
用户参与
星数127
关注者数15
派生数49
提交数5.9k
已启用问题?
问题数899
打开的问题数180
拉请求数647
打开的拉请求数3
关闭的拉请求数59
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?