<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Mapes_del_ICGC</id>
	<title>Mapes del ICGC - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Mapes_del_ICGC"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Mapes_del_ICGC&amp;action=history"/>
	<updated>2026-04-20T05:52:06Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Mapes_del_ICGC&amp;diff=259550&amp;oldid=prev</id>
		<title>Joan a 08:29, 23 jul 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Mapes_del_ICGC&amp;diff=259550&amp;oldid=prev"/>
		<updated>2020-07-23T08:29:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
=Mapes del ICGC=&lt;br /&gt;
[[Fitxer:Broca.png | thumbnail]]&lt;br /&gt;
carpeta /home/joan/projectes/OSM/ICGC&lt;br /&gt;
&lt;br /&gt;
==API de Leaflet==&lt;br /&gt;
*https://www.icgc.cat/es/Administracion-y-empresa/Servicios/Servicios-en-linea-Geoservicios/Servicios-para-API-y-Widgets/API-de-Leaflet&lt;br /&gt;
&lt;br /&gt;
script ''topografic_leaflet.html''&lt;br /&gt;
&lt;br /&gt;
En aquesta miniaplicació hi ha dues capes: topogràfic i ortofoto. Anem a fer el mateix amb l'API de OpenLayers:&lt;br /&gt;
&lt;br /&gt;
==API de Openlayers==&lt;br /&gt;
*https://www.icgc.cat/es/Administracion-y-empresa/Servicios/Servicios-en-linea-Geoservicios/Servicios-para-API-y-Widgets/API-de-OpenLayers&lt;br /&gt;
&lt;br /&gt;
d'aquí es pot descarregar l'exemple ''exempleol3.html'', però no funciona perquè fa referència a uns enllaços de OL3 que no funcionen. Canvio el codi per fer referència a OL4:&lt;br /&gt;
&lt;br /&gt;
''topografic_openlayers4.html''&lt;br /&gt;
&lt;br /&gt;
per obtenir el ortofoto n'hi ha prou en canviar una sola línia:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        var layers = [&lt;br /&gt;
                  new ol.layer.Tile({&lt;br /&gt;
                    extent: extent,&lt;br /&gt;
                    source: new ol.source.TileWMS({&lt;br /&gt;
                      url: 'http://mapcache.icc.cat/map/bases/service?',&lt;br /&gt;
                      params: {&lt;br /&gt;
                        'LAYERS': 'topo'&lt;br /&gt;
                      }&lt;br /&gt;
                    })&lt;br /&gt;
                  })&lt;br /&gt;
        ];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
per &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
'LAYERS': 'orto'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
obtenint el script ''ortofoto_openlayers4.html''&lt;br /&gt;
&lt;br /&gt;
{{Autor}}, juliol 2020&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>