umbe1987 / shire Goto Github PK
View Code? Open in Web Editor NEWA WebGIS portal made with open source projects.
License: MIT License
A WebGIS portal made with open source projects.
License: MIT License
It overwrites some style (e.g the sidebar header).
At present, it is used by the popup.
Follow the official ol example to create popups without bootstrap.
Now that services are secured with HTTP Basic Auth, accessing the WFS resource from export_wfs.php
gives 401 Unauthorized
error.
follow PyWPS docs.
This can be seen with lengthy services (many layers). In case there are lots of layers and the ToC panel need to be scrolled down, on zoom it gets scrolled up.
Service to test: https://servizigis.regione.emilia-romagna.it/wms/rete_escursionistica?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
This is happenign because I am using info_panel.innerHTML = (data);
ti inserto the info inside the panel, replacing everything there was before clicking the layer, and thus the <h1>
header.
Need to handle this!
I tried to separate the logic of getting the layers (WMS) info 'map.onclick' in e19c94a.
Right now, getText()
uses forEach.
return
in forEach
loop does not stops function as explained here.
using forEach, you are entering a new function (.foreach(function (e) {โฆ})) and calling return there stops that new function and not the parent (checkIfFollowed) one
I would need to take advantage from it: if it returns "everything", I might check how many undefined or text I get and do something with them. Need to test a bit...
Take inspiration from this gis.stackexchange answer.
See also official OL example, which uses jsPDF library.
It would be nice to have a working example to show the state of the project.
Reported as BUG to QGIS repo (see https://issues.qgis.org/issues/20549).
Alesandro Pasotti fixed it here qgis/QGIS#8520.
It is now in QGIS 3.4.2, need to wait that it gets to the ubuntu ppa (at present 24/11/2018 I have 3.4.0 and I can only upgrade to 3.4.1).
According to the official OGC WMS 1.3.0 specification:
The <MinScaleDenominator> and <MaxScaleDenominator> elements define the range of scales for which it is appropriate to generate a map of a Layer.
It would be nice to grey out layers in the toc if layers are not visible due to scale.
Use this to get current scale with OL and compare it with WMS capabilities.
Can be avoided by appending &GEOMETRYNAME=none
to the WFS GetFeature request (probably not supported by other WFS vendors like GeoServer).
The limit to requests a maximum of 200 records from WFS to build the Attribute Table causes the download of the same only 200 records.
shire/js/attribute_table/get_features.js
Lines 10 to 17 in a312492
Either I create a sort of pagination to split the requests in 200 records per page, or I should remove the final part of the WFS URL request passed in the downolad button like url.replace('&MAXFEATURES=200&','');
.
shire/js/attribute_table/build_table.js
Lines 51 to 54 in a312492
It would be nice to have a zoom icon by the layer list in the panel which, once clicked, zooms at the layer extent.
Apparently this happens only in Chrome when zooming in or out the map with two fingers on mobile.
Problem
the toc looses the opacity slider and legens under each layer.
Cause
Acoording to openlayers/openlayers#9105, too many change:resolution
events are triggered when zooming with two fingers.
Solution proposed
Using debouncing in JavaScript.
It would be very nice if a WMS has the GetLegendGraphic
capability to add the legend to the layer.
DOCUMENTATION
EXAMPLE
I am experiencing this issue from wondermap.it and not from my dev machine.
Will overwrite soon to see if everything get fixed, otherwise I have to look into it.
With the WMS parser, when I get the extent of a point layer, I then set it in the ol.source.ImageWMS params 'extent' option, but this is cutting the pint image symbol.
As requesting all the records from a WFS which has many rows slows down the rendering of the table, now there's an impse limit to a maximum of feature requests which is 200 (maybe too few).
I can implement a pagination like I do for the Info panel, by paginating the rows with the parameters STARTINDEX
combined with MAXFEATURES
, as described in https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/services.html#getfeature.
e.g. 200 records starting from the 200th
(without geometry, see also #19)
https://www.wondermap.it/cgi-bin/qgis_mapserv.fcgi?map=/home/ubuntu/qgis/projects/glaciers_WMS/demo_glaciers.qgs&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&MAXFEATURES=200&STARTINDEX=200&TYPENAME=glaciers_area&GEOMETRYNAME=none&
If more than one layer is on, the info loop can't reach the layers after the first one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.