forked from geosolutions-it/MapStoreExtension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 23a9718
Showing
59 changed files
with
28,158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{json,yml}] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
node_modules/ | ||
libs/Cesium/ | ||
dist/ | ||
target/ | ||
*.sublime-* | ||
npm-debug.log | ||
coverage/ | ||
web/.classpath | ||
web/.project | ||
backend/.classpath | ||
backend/.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "MapStore2"] | ||
path = MapStore2 | ||
url = https://github.com/geosolutions-it/MapStore2.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>MapStoreExtension-root</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.m2e.core.maven2Builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
</natures> | ||
<filteredResources> | ||
<filter> | ||
<id>1607613658849</id> | ||
<name></name> | ||
<type>30</type> | ||
<matcher> | ||
<id>org.eclipse.core.resources.regexFilterMatcher</id> | ||
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments> | ||
</matcher> | ||
</filter> | ||
</filteredResources> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
encoding/<project>=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM tomcat:8.5-jdk8-openjdk | ||
MAINTAINER geosolutions<[email protected]> | ||
|
||
# Tomcat specific options | ||
ENV CATALINA_BASE "$CATALINA_HOME" | ||
ENV JAVA_OPTS="${JAVA_OPTS} -Xms512m -Xmx512m -XX:MaxPermSize=128m" | ||
|
||
# Optionally remove Tomcat manager, docs, and examples | ||
ARG TOMCAT_EXTRAS=false | ||
RUN if [ "$TOMCAT_EXTRAS" = false ]; then \ | ||
find "${CATALINA_BASE}/webapps/" -delete; \ | ||
fi | ||
|
||
# Add war files to be deployed | ||
COPY docker/*.war "${CATALINA_BASE}/webapps/" | ||
|
||
# Geostore externalization template. Disabled by default | ||
COPY docker/geostore-datasource-ovr.properties "${CATALINA_BASE}/conf/" | ||
ARG GEOSTORE_OVR_OPT="" | ||
ENV JAVA_OPTS="${JAVA_OPTS} ${GEOSTORE_OVR_OPT}" | ||
|
||
# Set variable to better handle terminal commands | ||
ENV TERM xterm | ||
|
||
EXPOSE 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Copyright (c) 2015-2016, GeoSolutions Sas | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are | ||
permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of | ||
conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list | ||
of conditions and the following disclaimer in the documentation and/or other materials | ||
provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | ||
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
The views and conclusions contained in the software and documentation are those | ||
of the authors and should not be interpreted as representing official policies, | ||
either expressed or implied, of the MapStore2 Project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Template project to create MapStore extensions | ||
========== | ||
|
||
Quick Start | ||
------------ | ||
|
||
Clone the repository with the --recursive option to automatically clone submodules: | ||
|
||
`git clone --recursive undefined` | ||
|
||
Install NodeJS >= 7.10.0 , if needed, from [here](https://nodejs.org/en/download/releases/). | ||
|
||
Start the development application locally: | ||
|
||
`npm install` | ||
|
||
`npm start` | ||
|
||
The application runs at `http://localhost:8081` afterwards. | ||
|
||
Read more on the [wiki](undefined/wiki). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Template project to create MapStore extensions</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway" type='text/css'> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.2/leaflet.draw.css" /> | ||
<link rel="shortcut icon" type="image/png" href="https://cdn.jslibs.mapstore2.geo-solutions.it/leaflet/favicon.ico" /> | ||
<script src="https://maps.google.com/maps/api/js?v=3"></script> | ||
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.10/proj4.js"></script--> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.2/leaflet.draw.js"></script> | ||
<style> | ||
#container { | ||
position: absolute; | ||
top: 100px; | ||
left: 100px; | ||
right: 100px; | ||
bottom: 100px; | ||
} | ||
#mapstore2-embedded, #map, .fill { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body onload="init()"> | ||
<div id="container" class="ms2"></div> | ||
<script id="ms2-api" src="dist/MapStoreExtension-api.js"></script> | ||
<script type="text/javascript"> | ||
function init() { | ||
MapStore2.create('container', { | ||
originalUrl: "./#viewer/leaflet/0" | ||
}); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Template project to create MapStore extensions</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway" type='text/css'> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.2/leaflet.draw.css" /> | ||
<link rel="shortcut icon" type="image/png" href="https://cdn.jslibs.mapstore2.geo-solutions.it/leaflet/favicon.ico" /> | ||
<script src="https://maps.google.com/maps/api/js?v=3"></script> | ||
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.10/proj4.js"></script--> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.2/leaflet.draw.js"></script> | ||
<style> | ||
#container { | ||
position: absolute; | ||
top: 100px; | ||
left: 100px; | ||
right: 100px; | ||
bottom: 100px; | ||
} | ||
#mapstore2-embedded, #map, .fill { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body onload="init()"> | ||
<div id="container" class="ms2"></div> | ||
<script type="text/javascript"> | ||
function init() { | ||
MapStore2.create('container', { | ||
originalUrl: "./#viewer/leaflet/0" | ||
}); | ||
} | ||
</script> | ||
</body> | ||
</html> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>it.geosolutions.MapStoreExtension</groupId> | ||
<artifactId>MapStoreExtension-root</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>MapStoreExtension-backend</artifactId> | ||
<packaging>jar</packaging> | ||
<name>Template project to create MapStore extensions - Backend Services</name> | ||
<url>http://www.geo-solutions.it</url> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
<!-- ================================================================ --> | ||
<!-- JACKSON --> | ||
<!-- ================================================================ --> | ||
<dependency> | ||
<groupId>org.codehaus.jackson</groupId> | ||
<artifactId>jackson-mapper-asl</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-databind</artifactId> | ||
<version>${jackson.databind-version}</version> | ||
</dependency> | ||
<!-- ================================================================ --> | ||
<!-- SPRING --> | ||
<!-- ================================================================ --> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-core</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-context</artifactId> | ||
</dependency> | ||
<!-- <dependency> --> | ||
<!-- <groupId>org.springframework</groupId> --> | ||
<!-- <artifactId>spring-context-support</artifactId> --> | ||
<!-- </dependency> --> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-web</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-webmvc</artifactId> | ||
</dependency> | ||
<!-- =========================================================== --> | ||
<!-- LOGGING --> | ||
<!-- =========================================================== --> | ||
<dependency> | ||
<groupId>log4j</groupId> | ||
<artifactId>log4j</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-log4j12</artifactId> | ||
</dependency> | ||
<!-- <dependency> --> | ||
<!-- <groupId>org.slf4j</groupId> --> | ||
<!-- <artifactId>jcl-over-slf4j</artifactId> --> | ||
<!-- </dependency> --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
</dependency> | ||
<!-- JUnit --> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
export GITREV=`git log -1 --format="%H"` | ||
export VERSION="SNAPSHOT-$GITREV" | ||
|
||
npm install | ||
npm run compile | ||
npm run lint | ||
|
||
if [ $# -eq 0 ] | ||
then | ||
mvn clean install -Dmapstore2.version=$VERSION | ||
else | ||
mvn clean install -Dmapstore2.version=$1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"map": { | ||
"projection": "EPSG:900913", | ||
"units": "m", | ||
"center": {"x": 1250000.000000, "y": 5370000.000000, "crs": "EPSG:900913"}, | ||
"zoom":5, | ||
"maxExtent": [ | ||
-20037508.34, -20037508.34, | ||
20037508.34, 20037508.34 | ||
], | ||
"layers": [{ | ||
"type": "osm", | ||
"title": "Open Street Map", | ||
"name": "mapnik", | ||
"source": "osm", | ||
"group": "background", | ||
"visibility": true | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"type": "cascade", | ||
"resources": [], | ||
"settings": { | ||
"theme": { | ||
"general": { | ||
"color": "#333333", | ||
"backgroundColor": "#ffffff", | ||
"borderColor": "#e6e6e6" | ||
}, | ||
"overlay": { | ||
"backgroundColor": "rgba(255, 255, 255, 0.75)", | ||
"borderColor": "#dddddd", | ||
"boxShadow": "0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)", | ||
"color": "#333333" | ||
} | ||
} | ||
}, | ||
"sections": [ | ||
{ | ||
"type": "title", | ||
"id": "title_section_id1", | ||
"title": "Abstract", | ||
"cover": true, | ||
"contents": [ | ||
{ | ||
"id": "title_content_id1", | ||
"type": "text", | ||
"size": "large", | ||
"align": "center", | ||
"theme": "", | ||
"html": "", | ||
"background": { | ||
"fit": "cover", | ||
"size": "full", | ||
"align": "center" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
geostoreDataSource.url=jdbc:h2:./test | ||
geostoreEntityManagerFactory.jpaPropertyMap[hibernate.hbm2ddl.auto]=update |
Oops, something went wrong.