Skip to content

Commit

Permalink
Merge pull request #49 from maltaesousa/fit
Browse files Browse the repository at this point in the history
get rid of jquery and jquery-ui
  • Loading branch information
maltaesousa authored Mar 7, 2023
2 parents 2d46180 + 3e03671 commit d9ceff9
Show file tree
Hide file tree
Showing 8 changed files with 365 additions and 2,043 deletions.
Empty file removed assets/jquery-ui/.gitkeep
Empty file.
Empty file removed assets/jquery/.gitkeep
Empty file.
Empty file removed assets/polyfills/.gitkeep
Empty file.
207 changes: 104 additions & 103 deletions index.html

Large diffs are not rendered by default.

463 changes: 234 additions & 229 deletions js/sitnlayers.js

Large diffs are not rendered by default.

1,645 changes: 0 additions & 1,645 deletions package-lock.json

This file was deleted.

25 changes: 0 additions & 25 deletions package.json

This file was deleted.

68 changes: 27 additions & 41 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,27 @@
# sitnLayers

An openlayers widget that allows drawing and retrieving geometries with sitn base layers.

## Getting started
Clone this repository and open a shell at the root of your project.

Get assets by downloading them in the assets folder.

```powershel
curl https://code.jquery.com/jquery-3.3.1.min.js -o assets\jquery\jquery-3.3.1.min.js
curl https://code.jquery.com/ui/1.12.1/jquery-ui.min.js -o assets\jquery-ui\jquery-ui.min.js
curl https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/build/ol.js -o assets\ol\ol.js
curl https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/css/ol.css -o assets\ol\ol.css
curl https://raw.githubusercontent.com/proj4js/proj4js/2.5.0/dist/proj4.js -o assets\proj4\proj4.js
curl https://raw.githubusercontent.com/Viglino/ol-ext/master/dist/ol-ext.min.js -o assets\ol-ext\ol-ext.min.js
curl https://raw.githubusercontent.com/Viglino/ol-ext/master/dist/ol-ext.min.css -o assets\ol-ext\ol-ext.min.css
curl https://use.fontawesome.com/releases/v5.5.0/fontawesome-free-5.5.0-web.zip -o assets\fa.zip
Expand-Archive assets\fa.zip -DestinationPath assets
get-childitem -Path "assets\fontawesome*" | rename-item -NewName fontawesome
del assets\fa.zip
```

## Dev environment

If you want live reload, install live-server:

```powershel
npm install -g live-server
npm install
```

Download mappings for debug:

```powershel
curl https://code.jquery.com/jquery-3.3.1.min.map -o assets\jquery\jquery-3.3.1.min.map
curl https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/build/ol.js.map -o assets\ol\ol.js.map
curl https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/css/ol.css.map -o assets\ol\ol.css.map
```

then just run `live-server` at the root of your project.
# sitnLayers

An openlayers widget that allows drawing and retrieving geometries with sitn base layers.

## Getting started
Clone this repository and open a shell at the root of your project.

Get assets by downloading them in the assets folder.

```powershell
curl https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js -o assets\ol\ol.js
curl https://cdn.jsdelivr.net/npm/[email protected]/ol.css -o assets\ol\ol.css
curl https://raw.githubusercontent.com/proj4js/proj4js/2.8.1/dist/proj4.js -o assets\proj4\proj4.js
curl https://raw.githubusercontent.com/Viglino/ol-ext/master/dist/ol-ext.min.js -o assets\ol-ext\ol-ext.min.js
curl https://raw.githubusercontent.com/Viglino/ol-ext/master/dist/ol-ext.min.css -o assets\ol-ext\ol-ext.min.css
```

## Dev environment

If you want live reload, install live-server on your favourite code editor.

Download mappings for debug:

```powershell
curl https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js.map -o assets\ol\ol.js.map
curl https://cdn.jsdelivr.net/npm/[email protected]/ol.css.map -o assets\ol\ol.css.map
```

0 comments on commit d9ceff9

Please sign in to comment.