<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My brain is here &#187; osm</title>
	<atom:link href="http://casa.apertus.es/blog/tag/osm/feed/" rel="self" type="application/rss+xml" />
	<link>http://casa.apertus.es/blog</link>
	<description>I hope you like it.</description>
	<lastBuildDate>Tue, 03 Jan 2012 19:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Como incluir un mapa en wordpress</title>
		<link>http://casa.apertus.es/blog/2010/07/13/como-incluir-un-mapa-en-wordpress/</link>
		<comments>http://casa.apertus.es/blog/2010/07/13/como-incluir-un-mapa-en-wordpress/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 07:44:50 +0000</pubDate>
		<dc:creator>Juan Jose Pablos</dc:creator>
				<category><![CDATA[Español]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[osm]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://casa.apertus.es/blog/?p=347</guid>
		<description><![CDATA[<p>Algo que me ha sorprendido gratamente es la capacidad para añadir un mapa. Usando OpenStreetMap plugin Después de instalar el complemento simplemente añade este codigo (sin asterisco) [*osm_map lat="40.5600" long="-5.6716" zoom=14] .entry .olMapViewport img {max-width: none; max-height: none;}.entry-content img, .widget img {max-width: none; max-height: none;}.olControlAttribution {bottom: 0 !important;}div.olControlMousePosition {bottom: 1em !important;}#map_1 {clear: both; padding: 0px; margin: 0px; border: 0px; width: 100%; height: 100%; margin-top:0px; margin-right:0px;margin-left:0px; margin-bottom:0px; left: 0px;}#map_1 img{clear: both; padding: 0px; margin: 0px; border: 0px; width: 100%; height: 100%; position: absolute; margin-top:0px; margin-right:0px;margin-left:0px; margin-bottom:0px;}/* = limit) {            return OpenLayers.Util.getImagesLocation() + "404.png";        } else {            x = ((x % limit) + limit) % limit;            return this.url + z + "/" + x + "/" + y + "." + this.type;        }    }var lonLat = new OpenLayers.LonLat(-5.6716,40.5600).transform(map.displayProjection,  map.projection);map.setCenter (lonLat,14);})(jQuery)/* ]]> */ </p>
]]></description>
			<content:encoded><![CDATA[<p>Algo que me ha sorprendido gratamente es la capacidad para añadir un mapa. Usando <a href="http://www.faktor.cc/Fotomobil/wp-osm-plugin">OpenStreetMap plugin</a> Después de instalar el complemento simplemente añade este codigo (sin asterisco)<br />
<code> [*osm_map lat="40.5600" long="-5.6716" zoom=14]<br />
</code><br />
<style type="text/css">.entry .olMapViewport img {max-width: none; max-height: none;}.entry-content img, .widget img {max-width: none; max-height: none;}.olControlAttribution {bottom: 0 !important;}div.olControlMousePosition {bottom: 1em !important;}#map_2 {clear: both; padding: 0px; margin: 0px; border: 0px; width: 100%; height: 100%; margin-top:0px; margin-right:0px;margin-left:0px; margin-bottom:0px; left: 0px;}#map_2 img{clear: both; padding: 0px; margin: 0px; border: 0px; width: 100%; height: 100%; position: absolute; margin-top:0px; margin-right:0px;margin-left:0px; margin-bottom:0px;}</style><div id="map_2" style="width:450px; height:300px; overflow:hidden;padding:0px;border:none;"><script type="text/javascript">/* <![CDATA[ */(function($) { OpenLayers.ImgPath = "http://casa.apertus.es/blog/wp-content/plugins/osm/themes/ol/"; map = new OpenLayers.Map ("map_2", {            controls:[              new OpenLayers.Control.Navigation(),              new OpenLayers.Control.PanZoom(),              new OpenLayers.Control.Attribution()              ],          maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),          maxResolution: 156543.0399,          numZoomLevels: 19,          units: "m",          projection: new OpenLayers.Projection("EPSG:900913"),           displayProjection: new OpenLayers.Projection("EPSG:4326")      } );var layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");var layerTah    = new OpenLayers.Layer.OSM.Osmarender("Osmarender");var layerCycle  = new OpenLayers.Layer.OSM.CycleMap("CycleMap");var layerOSM_Attr = new OpenLayers.Layer.Vector("OSM-plugin",{attribution:"<a href=\"http://www.Fotomobil.at/wp-osm-plugin\">OSM plugin</a>"});map.addLayers([layerMapnik, layerTah, layerCycle, layerOSM_Attr]);map.addControl(new OpenLayers.Control.LayerSwitcher());    function osm_getTileURL(bounds) {        var res = this.map.getResolution();        var x = Math.round((bounds.left - this.maxExtent.left) / (res * this.tileSize.w));        var y = Math.round((this.maxExtent.top - bounds.top) / (res * this.tileSize.h));        var z = this.map.getZoom();        var limit = Math.pow(2, z);        if (y < 0 || y >= limit) {            return OpenLayers.Util.getImagesLocation() + "404.png";        } else {            x = ((x % limit) + limit) % limit;            return this.url + z + "/" + x + "/" + y + "." + this.type;        }    }var lonLat = new OpenLayers.LonLat(-5.6716,40.5600).transform(map.displayProjection,  map.projection);map.setCenter (lonLat,14);})(jQuery)/* ]]&gt; */ </script></div></p>
]]></content:encoded>
			<wfw:commentRss>http://casa.apertus.es/blog/2010/07/13/como-incluir-un-mapa-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

