Difference between revisions of "Gis Viewer App"

From Gcube Wiki
Jump to: navigation, search
(Created page with "The ''Gis Viewer App'' is a web application to interact with [https://wiki.gcube-system.org/gcube/GIS_Viewer Gis Viewer Widget] === Maven === The artifact is available on Ne...")
 
(Overview)
 
(6 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
</pre>
 
</pre>
  
=== Retrieve web service endpoint ===
+
=== URLs to access it ===
  
The service endpoint URL [GIS_VIEWER_APP_SERVICE_ENDPOINT] of Gis Viewer App is:
+
The URLs to access to Gis Viewer App (separated for environment) are the followings:
  
for the development environment
+
*DEV
  
 
<pre>
 
<pre>
Line 21: Line 21:
 
</pre>
 
</pre>
  
for the production environment
+
*PRE-PRODUCTION
 +
 
 +
<pre>
 +
http://data-pre.d4science.org/gis-viewer-app
 +
</pre>
 +
 
 +
*PRODUCTION
  
 
<pre>
 
<pre>
Line 32: Line 38:
 
By ''Gis Viewer App'' you can initialize the ''Gis Viewer Widget'' using the following parameters in the HTTP GET query string:
 
By ''Gis Viewer App'' you can initialize the ''Gis Viewer Widget'' using the following parameters in the HTTP GET query string:
  
* ''wmsrequest'': URL_ENCODED["HTTP/S WMS REQUEST"]. To open the Gis Viewer with the layer reachable by wms request.
+
* ''wmsrequest'': URL_ENCODED["HTTP/S WMS REQUEST"]. To show in the Gis Viewer the layer reachable by WMS request;
 +
 
 +
* ''zoom'': an integer in the range [1-25]. To set the zoom level of map (at init time). The `zoom` must be less than or equal to `maxzoomlevel`;
 +
 
 +
* ''centermap'': as LONG,LAT coordinates. To set the center of map (at init time);
 +
 +
* ''maxzoomlevel'': as integer in the range [1-25]. To set the max zoom level navigable in the map. The default is 14.
 +
 
 +
'''Example 1''':
 +
 
 +
**wmsrequest=https://geona-proto.d4science.org/geoserver/archeomar/wms?service=WMS&version=1.1.0&request=GetMap&layers=archeomar:schede_sub&styles=&bbox=13.5217329125,36.1909042583,19.9593367935,42.2244443889&width=768&height=719&srs=EPSG:4326&format=application/openlayers
 +
**zoom=6
 +
**centermap=12.45,42.98
 +
 
 +
The request is:
 +
 
 +
https://data-d.d4science.org/gis-viewer-app/?wmsrequest=https%3A%2F%2Fgeona-proto.d4science.org%2Fgeoserver%2Farcheomar%2Fwms%3Fservice%3DWMS%26version%3D1.1.0%26request%3DGetMap%26layers%3Darcheomar%3Aschede_sub%26styles%3D%26bbox%3D13.5217329125%2C36.1909042583%2C19.9593367935%2C42.2244443889%26width%3D768%26height%3D719%26srs%3DEPSG%3A4326%26format%3Dapplication%2Fopenlayers&zoom=6&centermap=12.45,42.98
  
* ''zoom'': an integer in the range [0-14]. To set the zoom level of map (at init time)
+
'''Example 2''':
  
* ''centermap'': as Long,Lat. To set the center of map (at init time)
+
**zoom=8
 +
**centermap=12.45,42.98
 +
**maxzoomlevel=18
  
e.g.
+
The request is:
  
https://data.d4science.org/gis-viewer-app/?wmsrequest=https%3A%2F%2Fgeona-proto.d4science.org%2Fgeoserver%2Farcheomar%2Fwms%3Fservice%3DWMS%26version%3D1.1.0%26request%3DGetMap%26layers%3Darcheomar%3Aschede_sub%26styles%3D%26bbox%3D13.5217329125%2C36.1909042583%2C19.9593367935%2C42.2244443889%26width%3D768%26height%3D719%26srs%3DEPSG%3A4326%26format%3Dapplication%2Fopenlayers&zoom=6&centermap=12.45,42.98
+
https://data-d.d4science.org/gis-viewer-app?zoom=8&centermap=12.45,42.98&maxzoomlevel=18

Latest revision as of 16:36, 7 May 2020

The Gis Viewer App is a web application to interact with Gis Viewer Widget

Maven

The artifact is available on Nexus with the following coordinates:

   <groupId>org.gcube.portlets.user</groupId>
   <artifactId>gis-viewer-app</artifactId>
   <packaging>war</packaging>

URLs to access it

The URLs to access to Gis Viewer App (separated for environment) are the followings:

  • DEV
http://data-d.d4science.org/gis-viewer-app
  • PRE-PRODUCTION
http://data-pre.d4science.org/gis-viewer-app
  • PRODUCTION
http://data.d4science.org/gis-viewer-app

Overview

The Gis Viewer App by Gis Viewer Widget allows to you to access and discover GIS Data. By Gis Viewer App you can initialize the Gis Viewer Widget using the following parameters in the HTTP GET query string:

  • wmsrequest: URL_ENCODED["HTTP/S WMS REQUEST"]. To show in the Gis Viewer the layer reachable by WMS request;
  • zoom: an integer in the range [1-25]. To set the zoom level of map (at init time). The `zoom` must be less than or equal to `maxzoomlevel`;
  • centermap: as LONG,LAT coordinates. To set the center of map (at init time);
  • maxzoomlevel: as integer in the range [1-25]. To set the max zoom level navigable in the map. The default is 14.

Example 1:

The request is:

https://data-d.d4science.org/gis-viewer-app/?wmsrequest=https%3A%2F%2Fgeona-proto.d4science.org%2Fgeoserver%2Farcheomar%2Fwms%3Fservice%3DWMS%26version%3D1.1.0%26request%3DGetMap%26layers%3Darcheomar%3Aschede_sub%26styles%3D%26bbox%3D13.5217329125%2C36.1909042583%2C19.9593367935%2C42.2244443889%26width%3D768%26height%3D719%26srs%3DEPSG%3A4326%26format%3Dapplication%2Fopenlayers&zoom=6&centermap=12.45,42.98

Example 2:

    • zoom=8
    • centermap=12.45,42.98
    • maxzoomlevel=18

The request is:

https://data-d.d4science.org/gis-viewer-app?zoom=8&centermap=12.45,42.98&maxzoomlevel=18