/* localizeISO8601 */ 

/* Author : Bhavesh Patel */ 
/* Location : http://bhavesh.freeshell.org */ 
/* Version  :  1.0 */
/* License   :  GPL 2.0 or higher */

var osm_maps = {
  description: "Find with Open Street Map",
  shortDescription: "OpenStreetMap",
  icon: "http://www.openstreetmap.org/favicon.ico",
  scope: {
    semantic: {
      "geo" : "geo"
    }
  },
  doAction: function(semanticObject, semanticObjectType, propertyIndex) {
    var url;

     if (semanticObjectType == "geo") {
      if (semanticObject.latitude && semanticObject.longitude) {
        url = "http://openstreetmap.org/?mlat=" + semanticObject.latitude + "&mlon=" + semanticObject.longitude + "&zoom=17&layers=B00FT" ;	      
      }
    }
    return url ;
  }
};
SemanticActions.add("osm_maps", osm_maps);

