private void updateMarker(MapPos pos, Map<String, String> toolTips) {

    if (clickMarker != null) {

      String text = "";
      if (toolTips.containsKey(UtfGridHelper.TEMPLATED_TEASER_KEY)) {
        // strio HTML from the teaser, so it can be shown in normal
        //              String strippedTeaser =
        // android.text.Html.fromHtml(toolTips.get(UtfGridHelper.TEMPLATED_TEASER_KEY).replaceAll("\\<.*?>","")).toString().replaceAll("\\p{C}", "").trim();
        //              Toast.makeText(activity, strippedTeaser, Toast.LENGTH_SHORT).show();
        //                Log.debug("show label ")
        text = toolTips.get(UtfGridHelper.TEMPLATED_TEASER_KEY);
      } else if (toolTips.containsKey("ADMIN")) {
        text = toolTips.get("ADMIN");
      }

      clickMarker.setMapPos(pos);
      mapView.selectVectorElement(clickMarker);
      WebView webView = ((WebView) ((ViewLabel) clickMarker.getLabel()).getView());
      Log.debug("showing html: " + text);
      webView.loadDataWithBaseURL(
          "file:///android_asset/",
          UiUtils.HTML_HEAD + text + UiUtils.HTML_FOOT,
          "text/html",
          "UTF-8",
          null);

      clickMarker.userData = toolTips;
    }
  }
  @Override
  public void setStartMarker(MapPos startPos) {
    routeLayer.clear();
    markerLayer.clear();

    markerLayer.add(startMarker);
    startMarker.setMapPos(startPos);
    startMarker.setVisible(true);
  }
 private void updateMarker(MapPos pos, String text) {
   if (clickMarker != null) {
     clickMarker.setMapPos(pos);
     mapView.selectVectorElement(clickMarker);
     WebView webView = ((WebView) ((ViewLabel) clickMarker.getLabel()).getView());
     Log.debug("showing html: " + text);
     webView.loadDataWithBaseURL("file:///android_asset/", text, "text/html", "UTF-8", null);
   }
 }
  @Override
  public void showRoute(
      final double fromLat, final double fromLon, final double toLat, final double toLon) {

    Log.debug("calculating path " + fromLat + "," + fromLon + " to " + toLat + "," + toLon);

    Projection proj = mapView.getLayers().getBaseLayer().getProjection();
    stopMarker.setMapPos(proj.fromWgs84(toLon, toLat));

    CloudMadeDirections directionsService =
        new CloudMadeDirections(
            this,
            new MapPos(fromLon, fromLat),
            new MapPos(toLon, toLat),
            CloudMadeDirections.ROUTE_TYPE_CAR,
            CloudMadeDirections.ROUTE_TYPE_MODIFIER_FASTEST,
            CLOUDMADE_KEY,
            proj);
    directionsService.route();
  }
 @Override
 public void setStopMarker(MapPos pos) {
   markerLayer.add(stopMarker);
   stopMarker.setMapPos(pos);
   stopMarker.setVisible(true);
 }