Christian Heilmann

Posts Tagged ‘maps’

Adding map links and a small map to any text using JavaScript – addmap.js

Friday, January 29th, 2010

As part of a larger article, I am currently building some tools that use geographical information. The first one is a pure JavaScript solution to link locations in a text to Google Maps and to show a small map under the text. You can see it in action by clicking the screenshot below.

Analyse text and add a map with its locations in pure JavaScript by  you.

All you need to do to use the script is get your own Google Maps key and embed the script in the page you want to analyse, giving it the ID of the main text element as a parameter:


You can customise the look and feel by writing your own CSS for the generated HTML and setting the addmap.config.width and addmap.config.height properties to resize the map.

Under the hood here is what happens:

The code of addmap.js is available on GitHub.

TTMMHTM: BOSS community, inate music, encoding and chinese glyphs for geeks, happiness, map overlays, JS scope and web databases

Saturday, August 1st, 2009

Things that made me happy this morning:

TTMMHTM: Obama and unicorns,3D reconstruction from Flickr photos,quick brown foxes,CSS colours and rotations and new apples

Wednesday, July 29th, 2009

Things that made me happy this morning:

GeoMaker update – new features and source available on GitHub

Monday, July 20th, 2009

Over the course of the weekend I finished polishing GeoMaker and uploaded the source to GitHub. So now you can use GeoMaker or its API and also host them on your own server.

The new features include:

  • Embedding of Geo microformats into a text when originally you wanted to analyse a text and intermediate text display.
  • Turning RSS feeds into maps (much like RSS2Map) with an intermediate filtering step
  • Total re-code (includes instead of one massive chunk, configuration and labels file)
  • Help and About and Developer docs

See the changes in action in the following screencast (the design of the RSS preview has changed since – more obvious now):

The next steps will be to allow for multiple map providers. Got any other ideas?

GeoMaker – easily turning web content into copy and paste maps and Geo microformats

Wednesday, July 1st, 2009

In preparation for my upcoming tech talk about Yahoo Placemaker I thought I have a bit more fun playing with the API. The main thing I wanted to create is a tool that makes it easy to either get geo content from some text as microformats or as a map to copy and paste without having to read lots of documentation.

Enter GeoMaker. In just three steps you can either get from URL to map or from text to map. If you add the site address to analyze as a URL parameter it even goes down to two steps :)

GeoMaker - a new project I am working on by  you.

I’d love to get feedback and see how we can improve this. I’ll release the code on GitHub in case you want to host this yourself once I got some more iterations done on it.