:date: 2012-11-25 23:14 .. index:: tech, octopress, blogg Octopress: Octolayer ==================== .. image:: /_images/images/gallery/2012/2012-placeholder/20120907-octopress-logo.png :alt: Octopress :align: right :scale: 50 New feature! New feature! When I wanted to integrate a City Map with a marker, Google Maps seemed to be the first choice. Somehow, `OpenStreetMaps `__ seemed to be appealing as well. When looking into it I quickly found out, that somebody had already looked into it. As well in a solution for `google maps `__, as well as `for OpenStreetmaps `__. Well, I used the OpenStreetMaps-integration. And again: I have to state that the number of details the people working on this have captured is overwhelming. But you'll probably find that out yourself. #. In order to integrate `Octolayer `__ into your `Octopress `__ just clone the git repository to your local disk .. code:: bash git clone https://github.com/mguentner/octolayer.git . #. Then you'll get the copy of the current plugin version. .. code:: bash $ find -type d /install ./install/sass ./install/sass/partials ./install/plugins ./install/source ./install/source/images ./install/source/javascripts ./install/source/javascripts/openlayers ./install/source/javascripts/openlayers/img ./install/source/_includes ./install/source/_includes/custom There are several files, but you can probably copy most of it directly into your blog engine beside the file :file:`head.html` in :file:`./install/source/_includes/custom/head.html`. You have to add that content to you already existing :file:`head.html` file. #. According to the :file:`README.mkd` file which you've downloaded as well you can `use the following syntax `__ (one of many versions): .. code:: bash map 52.5186 13.408056 12 "marker" I found it a bit tricky to integrate the markers directly from OpenStreetmaps (basically I didn't find the option to do so), but their FAQ `provides some help `__ here as well. On `m.osmtools.com `__ you can do that easily. Copy the Longitude and Latitude coordinates into the tag, choose a Zoom level and a description if you want to and you'll be done editing your post. #. Generate your blog again and enjoy the integrated map. -------- PS: Alternatively you can also integrate the i-frame code you can get from OpenStreetmap as well. Depends on how you want it. .. code:: bash