GithubHelp home page GithubHelp logo

hslayers / hslayers-ng Goto Github PK

View Code? Open in Web Editor NEW
33.0 14.0 20.0 213.15 MB

User interface and map building extensions for OpenLayers

Home Page: https://ng.hslayers.org/

License: MIT License

JavaScript 1.67% HTML 14.56% CSS 0.43% Shell 0.19% TypeScript 80.00% SCSS 2.99% Sass 0.02% Pug 0.05% Makefile 0.03% Scheme 0.07%
angular maps openlayers hslayers wfs wms

hslayers-ng's Introduction

HSLayers-NG monorepo

This is a monorepo for developing HSLayers-NG Angular library.

Hslayers version Angular version Bootstrap OpenLayers
1 1.7 4.5.3
2 1.7 + 9.1.x (hybrid) >=4.4
3 9.x 4.x
4 10.x 4.x
5 11.x 4.x
6 12.x 4.x
7 12.x 5.x
8 13.x 5.x
9 13.x 5.x ^6.14.1
10 14.x 5.x ^6.14.1, ^7.0.0
11 15.x 5.x 7.x
12 16.x 5.3 7.x
13 17.x 5.3 ^8.2
14 17.x 5.3 ^9.0

It contains source code of libraries which need to be used in an existing Angular based container project:

Source code for ready to use application bundles which can be included in html files through <script> tags:

Configuration for these applications can be provided through global hslayersNgConfig function which exposes an object containing a subset of most common OpenLayers classes through an ol parameter. In return the function must provide a JSON object conforming to HsConfig type. See example and config parameter descriptions.

  • hslayers-server - a simple cors-anywhere based proxy server which can be used to overcome CORS restrictions, fill API keys for services such as Geonames used for search and other tasks. Copying and modifying the .env file to preserve secrets and not expose them for everyone and all kinds of requests will be necessary.

Integration

HSLayers-NG can be integrated into larger systems. See crx-hslayers for an actively maintained widget for Wagtail/CodeRed CMS. Check hub4everybody.com to see, what you can achieve with this integration.

Development

Development server

Run ng serve for a dev server which displays a simple hslayers based map portal with almost no map layers. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files. It's based on hslayers-app project contained in this repository.

Build

Run ng build to build the HSLayers-NG library. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Cypress.

hslayers-ng's People

Contributors

bvj avatar chcjohnie avatar dailislangovskis avatar dependabot-preview[bot] avatar dependabot[bot] avatar filipleitner avatar fzadrazil avatar jachymkellar avatar jajanka avatar janbojko avatar jezekjan avatar jmacura avatar lkallipo avatar raitisbe avatar runarbe avatar sleitgeb avatar wohnout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hslayers-ng's Issues

mapove kompozice (nastaveni prav)

  1. muzu otevrit cizi mapovou kompozici, pak ji ulozit znovu - a tim trivialnim zpusobem ziskam prava na tuto kompozici - pak ji muzu i smazat :))) myslim, ze tato mezera v pravach ma byt opravena

  2. pokud pridam do verejne kompozici neverejnou vrstvu , a nasledne tu kompozici ulozim, tak ta neverejna vrstva se zobrazi komukoliv - protoze kompozice je verejna. myslim, ze se ma zomezit pridani neverejnych vrstev do verejnych kompozic

Problem with permalink

When i try load permalink first time (http://goo.gl/T03mDE), only screen with few buttons and cookie accept banner appear. After reload map is shown.
In console i got:

require.js?browserId=other&languageId=en_GB&b=6102&t=1467276235000:165 
Uncaught Error: Load timeout for modules: ol
http://requirejs.org/docs/errors.html#timeoutmakeError 
@ require.js?browserId=other&languageId=en_GB&b=6102&t=1467276235000:165checkLoaded 
@ require.js?browserId=other&languageId=en_GB&b=6102&t=1467276235000:693(anonymous function) 
@ require.js?browserId=other&languageId=en_GB&b=6102&t=1467276235000:714

Select objects from Virtuoso

Could be, that my idea is crazy, but what will be nice to be able similary like in catalogue select in Virtuso some type of objects. some class and this add to the composition. If we will store a lot of diferent types of objects in Virtuoso, this will be nice for building customised maps. And then use this objects like other type of layers. Do you think, that such apporach could be possible?

Original at https://redmine.ccss.cz/issues/5095

problem with KML layer

KML layer in the composition:

  1. overrides the composition extend
  2. messes the order of layers (goes to the bottom of the layer list)

See:
http://www.opentransportnet.eu/web/guest/create-maps?composition=http%3A%2F%2Fwww.opentransportnet.eu%2Fwwwlibs%2Fstatusmanager2%2Findex.php%3Frequest%3Dload%26id%3D6b8a02cf-a932-4e12-ac07-d6aacff35784

there the extent of the composition set to the center of Liberec and correct layer order is:

  1. Open Transport Map
  2. KML layer with bus stops
  3. virtuozo layer with bus stops

Editing

Same module as for TreeLayer also provides functionality for editing

Example can be seen here
http://hsmap.cz/app/hsrs/index-debug.php

(Panel Editace)
First select layer (Vyberte Vrstvu) - for example Plochy k editovani 2
draw polygon
Hit odeslat.

(error will occur)

wms getfeatureinfo request

Saving to status manager - Failed

I visualized 3 datasets - type of point, line and polygon, changed its cartographioc representation and I wanted to save the map as a composition, which failed (see the enclosed figure for the description)

The data has around 1MB of the size.

image

Check icons on the toolbox

Issue from Irene

Please. check the behaviour of the tool box in the map composer.

when i click on an icon, then it stucks over the second icon (see attached) and no matter which icon I choose, this stays there stuck just changing the icon in the middle.
Also, when making mouse over, the icons are changing their alignment and placing on the toolbox.

Also, I thought we have added some more transport icons after Prague meeting, but now seems a bit old here. Have we made any changes since then?

Many thanks.

toolbox

synchronizace_posuvatka_casu_a_WMS-T_vrstvy

Pri posuvani casu dopredu a dozadu u WMS-T vrstvy dochazi k posunu zacatku casoveho intervalu (viz prilozeny obrazek, normalne zacatek intervalu je 03-04-2016 22:00 , avsak z obrazku je patrne, ze nejde vybrat zadnou hodinu pred 05-04-2016 21:00).

posuvatko_casu

Map Compositions Count for OTN

COmming from Irene https://redmine.ccss.cz/issues/5959
countcompositions2
countcompositions

As a usability feature, I would propose adding in the map component one extra textbox below the "compositions" tab (see attached) to show total number of compositions that would change following zooming in and zooming out (by map extent).

In the same sense, it would be very helpful to have an annotation of paging as we have in the listing of datasets (see attached no2).

Please check its feasibility and give me a timeframe as it is considered as an important usability feature.

Many thanks in advance for this consideration.

Problems with Embeded on SDI4Apps Blog

I don’t know, if it is generic error in Embedded or if it is problem with WordPress or only on SDI4Apps , but I have such problems with Embeding. Could be, that it is only question of configuration of SDI4Apps Web pages, but I am not able to check it.
So I am using next permalink http://goo.gl/T03mDE. I am generating iframe code

<iframe src="http://goo.gl/T03mDE" width="1000" height="700"></iframe>

And putting it into editor for blog. See
test 1
If I am switching to visual code it is OK
test 2
However when I am publishing it, it disappear. See
test 3

Fix resource loading issues

Make loading sources from external domains possible by declaring global domain variable that will be used in URL assembly.

Permalink is not working correctly

If I am working with this Map composition on OTN portal http://goo.gl/T03mDE , the code is correct , if I am copping this code into other browser it works well. However if I am sharing it on Facebook of Google, there is not shared permalink, but whole composition. See attaached file
permalink

reading data from Virtuozo

Status of map

Map should return to last state if you leave map and return back.

Proj4 issues

On fly loading of proj4js defs

Old version of proj4js provided on fly loading of non-available defs. New version doesn't allow this because proj4js/proj4js#165
this defs can be loaded for example from epsg.io

Proj4 defs names

I think that by proj4js is provided possibility to use names instead of EPSG codes. It will more user friendly

TreeLayer

Old HSLayers had class Layer.TreeLayer (http://redmine.ccss.cz/projects/hslayers/repository/entry/branches/hslayers-3.5/source/HSLayers/Layer/TreeLayer.js)

Init is done:
LAYERS.geoportal_base_kn = new HSLayers.Layer.TreeLayer("kn", "http://geoportal.kraj-lbc.cz/mapserv/hsmap/index.php", {project: "geoportal_base", transparent: true, layers: 'parc sprava'}, { title: "&lt;b&gt;Katastr nemovitostí a správní hranice&lt;/b&gt;", visibility: true, ratio: 1, isBaseLayer: false, queryable: true });

Identify behavior

At http://otn-dev.intrasoft-intl.com/explore-maps?hs_x=1606238.490305179&hs_y=6460289.967589872&hs_z=16&hs_panel=info&visible_layers=Base%20layer%3BAutomaty%3BCyklisticke%20trasy

When I click somewhere at the map where is no feature to identify, nothing happens. Expected behavior: Show Info panel with coordinates.
When I click on the feature, Info panel is shown with desired information. OK
When I click somewhere at the map again, the coordinates are redrawn, but information from last identified feature is still shown. It should be erased.

Code "refractoring"

Go trough code and check if you are reusing functions as much as possible. For example code for loading of nonwms layers from ckan is writen at datasource_selector and also at ows_nonwms. So if you make change in one it will not be visible in another

Remembering status

If I am working on OTN Hub and I need login or I need registered myself I am losing my compossition. It will be good to remebmer this in status manager and then again open this on the same place. Probably it will be good generaly, when I am leaving and comming back

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.