Skip to content

Commit

Permalink
Merge pull request #4975 from camptocamp/fix-example
Browse files Browse the repository at this point in the history
Fix the examples
  • Loading branch information
sbrunner authored Jun 27, 2019
2 parents d2afa6d + 91e9771 commit dad9664
Show file tree
Hide file tree
Showing 75 changed files with 75 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ gh-pages: .build/python-venv.timestamp
.build/python-venv.timestamp
mkdir -p $(dir $@)
$(PY_VENV_BIN)/python buildtools/generate-examples-index.py \
--app 'GeoMapFish' contribs/gmf/mobile.html 'GeoMapFish examples.' \
--app 'GeoMapFish' contribs/gmf/ 'GeoMapFish examples.' \
$< $(NGEO_EXAMPLES_HTML_FILES) > $@

.build/examples-hosted/contribs/gmf/index.html: \
Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/apps/iframe_api/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
</ngeo-modal>
</main>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,default-3.6,Array.prototype.includes,Object.entries,Object.values"></script>
<script src="../../../dist/vendor.js?${htmlWebpackPlugin.options.vars.version}"></script>
<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>
<script src="<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script>
<% } %>
Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/examples/authentication.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
directive to insert an authentication panel in a GeoMapFish page.
</p>
<gmf-authentication gmf-authentication-password-validator="ctrl.passwordValidator"></gmf-authentication>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/backgroundlayerselector.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
</gmf-backgroundlayerselector>
</div>
<gmf-map gmf-map-map="ctrl.map"></gmf-map>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/contextualdata.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
<body ng-controller="MainController as ctrl">
<gmf-map gmf-map-map="ctrl.map" gmf-contextualdata="" gmf-contextualdata-map="::ctrl.map" gmf-contextualdata-projections="::[21781, 4326]" gmf-contextualdata-callback="::ctrl.onRasterData"></gmf-map>
<p id="desc">This example shows how to use the <code>gmf-contextualdata</code> directive to display coordinates or data related to the point after a right click on the map.</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/datepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
</pre>
</li>
</ul>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/displayquerygrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
gmf-displayquerygrid-featuresstyle="ctrl.featureStyle"
gmf-displayquerygrid-map="::ctrl.map">
</gmf-displayquerygrid>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/displayquerywindow.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@
gmf-displayquerywindow-desktop="::ctrl.desktop"
gmf-displayquerywindow-featuresstyle="ctrl.featureStyle">
</gmf-displayquerywindow>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/drawfeature.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ <h2>Draw & Measure</h2>
directive to create, modify and delete vector features on a map and
style them as we please.
</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/editfeature.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@
</div>
</div>
</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/editfeatureselector.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@
</gmf-editfeatureselector>

</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/elevation.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
</div>

<p id="desc">This example shows how to use the <code>gmf-elevation</code> directive to get elevation under the mouse position.</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/featurestyle.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
directive to style a vector feature. Click on a feature to show the
directive.
</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/filterselector.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
tool-group="ctrl.toolGroup">
</gmf-filterselector>
</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/importdatasource.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@
map="ctrl.map">
</gmf-importdatasource>
</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/layertree.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
<gmf-layertree
gmf-layertree-map="::ctrl.map">
</gmf-layertree>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/layertreeadd.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
<gmf-layertree
gmf-layertree-map="::ctrl.map">
</gmf-layertree>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/lidarprofile.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
gmf-lidarprofile-panel-line="ctrl.profileLine">
</gmf-lidarprofile-panel>
</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/mobilemeasure.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@
<code>gmfRaster</code> service to also obtain the height of the
location as well.
</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/mouseposition.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
</div>
</div>
<p id="desc">This example shows how to use the <code>gmf.mouseposition</code> directive.</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/objectediting.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ <h2>ObjectEditing</h2>
</li>
</ul>
</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/objecteditinghub.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
</button>
</div>
</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/permalink.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
<code>gmfPermalinkOptions</code> to customize the permalink crosshair
feature style.
</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@
</div>
</div>
</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
gmf-profile-linesconfiguration="::ctrl.profileLinesconfiguration"
gmf-profile-options="::ctrl.profileOptions">
</gmf-profile>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
<p>You typed: {{ctrl.inputValue}}</p>
<div id="message"></div>
</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
<ngeo-modal ng-model="ctrl.modalShareWithEmailShown">
<gmf-share ng-if="ctrl.modalShareWithEmailShown" gmf-share-email="true"/>
</ngeo-modal>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
<body ng-controller="MainController as ctrl">
<gmf-map gmf-map-map="ctrl.map"></gmf-map>
<p id="desc">This example shows how to use the <code>gmf-map</code> directive to insert an OpenLayers map in a GeoMapFish page.</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/themeselector.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@

</div>
<p id="desc">This example shows how to use the <code>gmf.themeselector</code> directive from a c2c geoportal theme service.</p>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/timeslider.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
</pre>
</li>
</ul>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/wfspermalink.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
gmf-displayquerywindow-desktop="false"
gmf-displayquerywindow-featuresstyle="ctrl.featureStyle">
</gmf-displayquerywindow>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions contribs/gmf/examples/xsdattributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@
</div>
</div>
</div>
<script type="text/javascript" src="../../dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
</label>
<p>Use the <em>Open sidebar!</em> to open the sidebar and change the width of the map.</p>
<p id="desc">This example shows how to animate the resizing of a map without distortions of the map during the animation. This uses the <code><a href="../apidoc/ngeo.map.resizemap.html" title="Read our documentation">ngeoResizemap</a></code> directive.</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/asitvd.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
This example shows how to use the <code>ngeo.source.AsitVD</code> source to access tiles from the
<a href="https://asitvd.ch/chercher/geoservices/fond-de-plan-asit-vd.html">ASIT VD tile server</a>.
</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
<textarea readonly ng-model="ctrl.log" rows="10" cols="100"></textarea>
</div>
</div>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/backgroundlayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@

</div> <!-- container -->

<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/backgroundlayerdropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
<div>
<p id="desc">This example shows how to write an application-specific directive (<code>app-backgroundlayer</code>) to create a background layer selector. The directive is based on Bootstrap's <code>dropdown</code> jQuery plugin, and on the <code><a href="../apidoc/ngeo.map.BackgroundLayerMgr.html" title="Read our documentation">ngeoBackgroundLayerMgr</a></code> service.</p>
</div>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/bboxquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@

<app-queryresult></app-queryresult>

<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/colorpicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
<div>
<p id="desc">This example shows how to write an application-specific directive (<code>app-colorpicker</code>) based on <code>ngeo-colorpicker</code>to create a color picker.</p>
</div>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/control.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<div id="map" ngeo-map="ctrl.map"></div>
Mouse position: <div id="mouse-position" ngeo-control="ctrl.control" ngeo-control-map="ctrl.map"></div>
<p id="desc">This example shows how to use the <code><a href="../apidoc/ngeo.misc.controlComponent.html" title="Read our documentation">ngeo-control</a></code> directive to insert an OpenLayers control in the page.</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/createfeature.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@
a map.
</p>

<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/datepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
</pre>
</li>
</ul>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/datetimepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
ng-model="ctrl.datetime"
ngeo-datetimepicker
ngeo-datetimepicker-options="{scrollTime: false, format: 'Y-m-d H:i:s', mask: '9999-19-39 29:59:59'}"></p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/desktopgeolocation.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
directive.
</p>
</div>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/disclaimer.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
class="btn btn-danger">Close all</button>
</div>

<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/displaywindow.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ <h3>Using AngularJS bindings:</h3>
</p>
</div>
</script>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/drawfeature.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@
directive to draw vector features on the map.
</p>

<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/elevationProfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
</ul>

<p id="desc">This example shows how to use <code><a href="../apidoc/ngeo.profile.elevationComponent.html" title="Read our documentation">ngeo-profile</a></code> to create a D3-based elevation profile graphic.</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/googlestreetview.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
</div>
<script src="https://maps.googleapis.com/maps/api/js?v=3&key=AIzaSyA3NVIy-HOYT0a0CkChA6nFwqEFqHYWBVk"></script>

<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@

<ngeo-grid ngeo-grid-configuration="ctrl.gridConfig"></ngeo-grid>

<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/importfeatures.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
<p ng-hide="::ctrl.fileReaderSupported">Your browser doesn't support the <code>FileReader</code> API! IE 9?</p>
<p id="desc">This example shows how to use the <code><a href="../apidoc/ngeo.misc.filereaderComponent.html" title="Read our documentation">ngeo-filereader</a></code> directive to import features from a KML file read from the user's file system.</p>
<p>You can download and use the <a href="http://openlayers.org/en/master/examples/data/kml/2012-02-10.kml">2012-02-10.kml file</a> from the OpenLayers examples for testing.</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/interactionbtngroup.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
<button ngeo-btn class="btn btn-primary" ng-model="ctrl.showInfo">Info</button>
<div ng-show="ctrl.showInfo" ng-cloak class="alert alert-success" role="alert"><b>ngeo-btn</b> directive works also outside <b>ngeo-btn-group</b> one</div>
<p id="desc">This example shows how to use the <code><a href="../apidoc/ngeo.misc.btnComponent.html" title="Read our documentation">ngeo-btn-group</a></code> and <code><a href="../apidoc/ngeo.misc.btnComponent.html" title="Read our documentation">ngeo-btn</a></code> directives to activate/deactivate OpenLayers interactions in a toggle group.</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/layerorder.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
<input type="checkbox" ng-model="ctrl.toggleRoadsLayer" ng-model-options="{getterSetter: true}"/>
<label>
<p id="desc">This example shows how to use the <code><a href="../apidoc/ngeo.misc.sortableComponent.html" title="Read our documentation">ngeo-sortable</a></code> directive and the <code><a href="../apidoc/ngeo.misc.syncArrays.html" title="Read our documentation">ngeo.misc.syncArrays</a></code> function to create a list of layers where the order of layers can be changed using drag-and-drop.</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/layertree.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<div id="map" ngeo-map="mainCtrl.map"></div>
<app-layertree app-layertree-map="::mainCtrl.map"></app-layertree>
<p id="desc">This example shows how to use ngeo's layer tree directive (<code><a href="../apidoc/ngeo.layertree.component.html" title="Read our documentation">ngeo-layertree</a></code>). It also shows how to define an application-specific HTML partial for the tree nodes.</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/locationsearch.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
service and the <code><a href="../apidoc/search.html#LocationSearchOptions" title="Read our documentation">LocationSearchOptions</a></code>
options together with the <a href="http://api3.geo.admin.ch/services/sdiservices.html#search">GeoAdmin Location Search API</a>.
</div>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/mapfishprint.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
<span ng-bind="ctrl.printState"></span>
<p id="desc">This example shows how to use <code><a href="../apidoc/ngeo.createPrintServiceFactory.html" title="Read our documentation">ngeo.Print</a></code> to print an OpenLayers map with MapFish Print v3.</p>
<p>In this example the best print scale is chosen based on the current map resolution.</p>
<script type="text/javascript" src="dist/vendor.js"></script>
</body>
</html>
Loading

0 comments on commit dad9664

Please sign in to comment.