Twitter

Como incluir un mapa en wordpress

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)/* ]]> */