1 package tim.prune.function.browser;
4 import tim.prune.GenericFunction;
7 * Function to show a webservice for the current area or point
9 public class WebMapFunction extends GenericFunction
11 /** Service to call */
12 private UrlGenerator.WebService _service;
13 /** Key for appearance in menu */
14 private String _nameKey = null;
18 * @param inApp app object
19 * @param inService web service to call
20 * @param inNameKey name key for function
22 public WebMapFunction(App inApp, UrlGenerator.WebService inService,
31 public String getNameKey() {
37 * Do the function call
41 String url = UrlGenerator.generateUrl(_service, _app.getTrackInfo());
43 BrowserLauncher.launchBrowser(url);