This project is generated with yo angular generator version 0.12.1.
After cloning this repo, you can build with:
npm install
bower install
grunt serve
Run grunt build
for building and grunt serve
for preview.
Running grunt test
will run the unit tests with karma.
For the production configuration of MapVenture, set two operating system environment variables to provide the production GeoServer URLs. The environment variables to set are GEOSERVER_URL and MV_LEAFLET_IMAGE_PATH.
MV_LEAFLET_IMAGE_PATH
should be set to point to the directory where images built into Leaflet live, and on the production server this is likely to just be /images/
.
Here is a development example of setting the environment variables:
export GEOSERVER_URL="http://localhost:8080/geoserver"
export MV_LEAFLET_IMAGE_PATH="bower_components/leaflet/dist/images"
Once the URLs are set, run either:
grunt serve
or:
grunt build
Note: If the system variables are not set, it will default to use http://localhost:8080/geoserver/wms
for GeoServer. There is no meaningful default for the Leaflet image path.
First, download the binary for your environment from: https://github.com/git-hooks/git-hooks/releases
Untar and move the binary within the extracted build directory into your $PATH. Be sure to rename it as just 'git-hooks' like:
mv git-hooks-<etc> /usr/local/bin/git-hooks
Run the following command in your local mapventure repository: git hooks install
Now when creating a branch from master, the branch will have the post-checkout command to prune our Bower components.
To customize behavior for a map so that it's not using the DefaultMapController:
app/scripts/maps
directory.app/scripts/maps/default/controller.js
file there, and customize it as required.app/scripts/services/mapregistry.js
file.index.html
so they are included/minified (see how it's done for the default
controller/tour for the proper syntax).To customize CSS per-map:
app/styles
.._d5a90928-2119-11e6-92e2-08002742f21f { // styles here... }
.@import('newStyleFile.scss')
block to the main.scss
file.