From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Re: Yet another way to use maps --- the light way Date: Thu, 23 Sep 2010 22:10:10 +0200 Message-ID: <8762xw8bml.fsf@gmx.de> References: <87tylgn0xw.fsf@gmx.de> <8762xwcls6.fsf@mean.albasani.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54631 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oys7Y-0000R4-GZ for emacs-orgmode@gnu.org; Thu, 23 Sep 2010 16:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oys7X-0005Z8-09 for emacs-orgmode@gnu.org; Thu, 23 Sep 2010 16:10:20 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:52046 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Oys7W-0005YI-I2 for emacs-orgmode@gnu.org; Thu, 23 Sep 2010 16:10:18 -0400 In-Reply-To: <8762xwcls6.fsf@mean.albasani.net> (Memnon Anon's message of "Thu, 23 Sep 2010 19:30:02 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Memnon Anon Cc: emacs-orgmode@gnu.org Memnon Anon writes: > Hi, > > Sebastian Rose writes: > >> there is a light and easy way to use google and openstreetmap.org maps >> if you define them as a custom link type: >> >> (setq org-link-abbrev-alist >> '(("gmap" >> . "http://maps.google.com/maps?q=3D%s") >> ("omap" >> . "http://nominatim.openstreetmap.org/search?q=3D%s&polygon=3D1"))) >> >> Now >> [[gmap:Falkenstr 10, Hannover, Germany][Falkenstra=C3=9Fe]] >> >> and >> [[omap:Falkenstr 10, Hannover, Germany]] > [...] > > This works fine for viewing in an external browser like conkeror or ff, > but fails for me in emacs w3m. > > Memnon Yes. For this to work, you'd to do something like this (untested): (defun org-follow-gmap-link (path) "Follow a google-map link when clicked." (browse-url-mozilla (concat "http://maps.google.com/maps?q=3D" path))) (org-add-link-type "gmap" 'org-follow-gmap-link nil) (defun org-follow-omap-link (path) "Follow a osm-map link when clicked." (browse-url-mozilla (concat "http://nominatim.openstreetmap.org/search?q=3D" path "&polygon=3D1"))) (org-add-link-type "omap" 'org-follow-omap-link nil) HTH Sebastian