Skip to content

Commit

Permalink
Canvi URL geocodificador ICGC
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelfb committed May 8, 2024
1 parent 916bf64 commit 901245e
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
Leaflet + Geocodificador ICGC plugin
========================================

Plugin que permet tenir les funcions de geocodificació en un mapa fet amb Leaflet utilitzant el geocodificador ICGC fet amb Pelias.
2022/10/18:
- he fet una copia de la branca master de https://github.com/OpenICGC/leaflet-geocodericgc-plugin.git
- He copiat els canvis fets a branca devel
- He fet commit a https://autogitlab.icgc.local/i.fabrellas/leaflet-geocodericgc-plugin-autogitlab.git

## Requeriments

Cal utilitzar la lliberia de mapes **[Leaflet](https://github.com/Leaflet/Leaflet)** . Suporta Leaflet **v0.7.3** (i superior) and **v1.0.0**.
Expand All @@ -32,7 +26,7 @@ var map = L.map('map', {
center:[41.431, 1.8580],
zoom: 8,
minZoom:2,
maxZoom:18,
maxZoom:18,
scrollWheelZoom: true
});
```
Expand All @@ -41,7 +35,6 @@ var map = L.map('map', {

```javascript
var geocodingOptions = {
//url:'https://betaserver2.icgc.cat/geocodificador',
url:'https://eines.icgc.cat/geocodificador',
expanded: true,
autocomplete: true,
Expand All @@ -55,45 +48,7 @@ L.control.geocoder(geocodingOptions).addTo(map);
## Demo
https://openicgc.github.io/leaflet-geocodericgc-plugin/

## ####################################################
## Pujada al servidor senodedev01

# copiar carpeta leaflet-geocodericgc-plugin-autogitlab a /home/des.web/aplicacions/visor_leaflet_pelias2023


# Fitxer Dockerfile a /home/des.web/aplicacions/visor_leaflet_pelias2023:

# Instruction for Dockerfile to create a new image on top of the base image (httpd)
FROM httpd:2.4
COPY /leaflet-geocodericgc-plugin-autogitlab/. /usr/local/apache2/htdocs/

# esborrar contenidor
sudo docker rm --force visor_leaflet_pelias2023

# esborrar imatge
sudo docker rmi visor_leaflet_pelias2023

# Crear la imatge:
cd /home/des.web/aplicacions/visor_leaflet_pelias2023/leaflet-geocodericgc-plugin-autogitlab
sudo docker build -f build/Dockerfile -t visor_leaflet_pelias2023 .


# Arrencar el contenidor:
sudo docker run -d --name visor_leaflet_pelias2023 -p 85:80 visor_leaflet_pelias2023


# Execucio:
http://172.20.70.27:85/

## ################################

# Execució
Cal engegar apache.
En el cas del servidors de PRE/PROD, cal engegar el docker d'apache i projecte

cd /home/des.web/serveis/visor_pelias
sudo docker rmi icgc/visor_pelias
chmod 777 deploy_dev.sh
./deploy_dev.sh
sudo docker ps

0 comments on commit 901245e

Please sign in to comment.