Skip to content

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Oct 25, 2022
1 parent 43091c8 commit f3493e7
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 27 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/cff-validator.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
paths:
- CITATION.cff
workflow_dispatch:

name: CITATION-cff
name: CITATION.cff
jobs:
Validate-CITATION-cff:
runs-on: ubuntu-latest
name: Validate CITATION.cff
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"

steps:
- name: Checkout
uses: actions/checkout@v2

# This is needed for workflows running on
# ubuntu-20.04 or later
- name: Install V8
if: runner.os == 'Linux'
run: |
sudo apt-get install -y libv8-dev
- name: Validate CITATION.cff
uses: dieghernan/cff-validator@main
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# v1.3.1 - *2022-10-25*

## Fixed

Fix MDT Relieve

### Checks

- [x] Bump version on script
- [x] Beautify
- [ ] Lint


# v1.3.0 - *2022-02-16*

## Added
Expand Down Expand Up @@ -100,7 +113,7 @@ NA
- [x] Beautify
- [ ] Lint

# On dev - *unreleased*
On dev - *unreleased*

## Added

Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
given-names: "Diego"
orcid: "https://orcid.org/0000-0001-8457-4658"
title: "leaflet-providersESP: A leaflet plugin with Spanish services"
version: 1.3.0
version: 1.3.1
doi: "10.5281/zenodo.5731395"
repository-code: "https://github.com/dieghernan/leaflet-providersESP"
url: https://dieghernan.github.io/leaflet-providersESP/
Expand Down
24 changes: 14 additions & 10 deletions dev/leaflet-providersESP.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// leaflet-providersESP.js plugin v1.2.0
// leaflet-providersESP.js plugin v1.3.1
// (c) D. Hernangomez - MIT License
// https://dieghernan.github.io/leaflet-providersESP/
// Issues: https://dieghernan.github.io/leaflet-providersESP/issues
// All providers are open source. Please check attributions
// Feel free to contribute
"use strict";
var providersESPversion = 'v1.2.0';
var providersESPversion = 'v1.3.1';
// Databases
// WMTS Servers - Tile Maps - Mapas de Teselas
var completeWMTS = "&style=default&tilematrixset=GoogleMapsCompatible&TileMatrix={z}&TileRow={y}&TileCol={x}";
Expand Down Expand Up @@ -59,7 +59,7 @@ var providersESP = {
url: "https://servicios.idee.es/wmts/mdt?service=WMTS&request=GetTile&version=1.0.0&Format=image/png&layer={variant}" + completeWMTS,
options: {
attribution: "<a href='http://www.ign.es/'>Infraestructura de Datos Espaciales de Espa&ntilde;a (IDEE)</a>",
variant: "EL.GridCoverage",
variant: "EL.ElevationGridCoverage",
bounds: [
[22.173559281306314, -47.0716243806546],
[66.88067635831743,
Expand Down Expand Up @@ -186,7 +186,7 @@ var providersESP = {
options: {
layers: "CP.CadastralParcel",
transparent: true,
minZoom: 15,
minZoom: 10,
format: "image/png",
attribution: "<a href='http://www.sedecatastro.gob.es/' target='_blank'>Spanish General Directorate for Cadastre</a>"
},
Expand All @@ -203,13 +203,17 @@ var providersESP = {
url: "http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx",
options: {
layers: "PARCELA",
minZoom: 15
minZoom: 10
}
},
CadastralParcel: {},
CadastralParcel: "CP.CadastralParcel",
CadastralZoning: "CP.CadastralZoning",
Address: "AD.Address",
Building: "BU.Building"
Building: "BU.Building",
BuildingPart: "BU.BuildingPart",
AdministrativeBoundary: "AU.AdministrativeBoundary",
AdministrativeUnit: "AU.AdministrativeUnit"

}
},
RedTransporte: {
Expand Down Expand Up @@ -448,7 +452,7 @@ function providerOpts(arg, options) {
if (attr.indexOf('{attribution.') === -1) {
return attr;
}
return attr.replace(/\{attribution.(\w*)\}/g, function (match, attributionName) {
return attr.replace(/\{attribution.(\w*)\}/g, function(match, attributionName) {
return attributionReplacer(providers[attributionName].options.attribution);
});
}
Expand All @@ -461,12 +465,12 @@ function providerOpts(arg, options) {
};
return providerend;
}
L.tileLayer.providerESP = function (name, opts) {
L.tileLayer.providerESP = function(name, opts) {
var newprov = providerOpts(name, opts);
var nameurl = newprov.url;
if (nameurl.includes("{x}")) {
return L.tileLayer(newprov.url, newprov.options);
} else {
return L.tileLayer.wms(newprov.url, newprov.options);
}
}
}
6 changes: 3 additions & 3 deletions dist/leaflet-providersESP.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// leaflet-providersESP.js plugin v1.3.0
// leaflet-providersESP.js plugin v1.3.1
// (c) D. Hernangomez - MIT License
// https://dieghernan.github.io/leaflet-providersESP/
// Issues: https://dieghernan.github.io/leaflet-providersESP/issues
// All providers are open source. Please check attributions
// Feel free to contribute
"use strict";
var providersESPversion = 'v1.3.0';
var providersESPversion = 'v1.3.1';
// Databases
// WMTS Servers - Tile Maps - Mapas de Teselas
var completeWMTS = "&style=default&tilematrixset=GoogleMapsCompatible&TileMatrix={z}&TileRow={y}&TileCol={x}";
Expand Down Expand Up @@ -59,7 +59,7 @@ var providersESP = {
url: "https://servicios.idee.es/wmts/mdt?service=WMTS&request=GetTile&version=1.0.0&Format=image/png&layer={variant}" + completeWMTS,
options: {
attribution: "<a href='http://www.ign.es/'>Infraestructura de Datos Espaciales de Espa&ntilde;a (IDEE)</a>",
variant: "EL.GridCoverage",
variant: "EL.ElevationGridCoverage",
bounds: [
[22.173559281306314, -47.0716243806546],
[66.88067635831743,
Expand Down

0 comments on commit f3493e7

Please sign in to comment.