hupfis (owner)

Revisions

  • 6d07b5 Mon Jul 20 05:54:03 -0700 2009
  • 855ae6 Mon Jul 20 05:51:31 -0700 2009
  • 9fa4e7 Mon Jul 20 05:50:20 -0700 2009
  • ee0cac Mon Jul 20 05:32:15 -0700 2009
  • bc7604 Mon Jul 20 05:30:34 -0700 2009
  • 8a00f5 Mon Jul 20 05:26:52 -0700 2009
  • 915a6a Mon Jul 20 05:21:28 -0700 2009
gist: 150292 Download_button fork
public
Public Clone URL: git://gist.github.com/150292.git
Embed All Files: show embed
OpenStreetMap Ubiqutiy.js #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CmdUtils.CreateCommand({
  names: ["osm", "openstreetmap"],
  author: { name: "Dominik Hurnaus", email: "osm@hupfis.com"},
  license: "CC",
  icon: "http://www.openstreetmap.org/favicon.ico",
  description: "OpenStreetMap maps",
  
  arguments: {object: noun_type_geolocation},
 
  execute: function map_execute({object: {text}}) {
    Utils.openUrlInBrowser("http://gazetteer.openstreetmap.org/namefinder/" +
                           (text ? "?find=" + encodeURIComponent(text) : ""));
  },
  preview: function(pblock, args) {
     var data = {};
     data.query = args.object.text;
     pblock.innerHTML = CmdUtils.renderTemplate(_(
                          "Searching for ${query}", data ));
  },
 
});