LocationMapViewer



From OpenStreetMap Wiki



Jump to navigation  Jump to search  

LocationMapViewer - Other languages

  •  Afrikaans 
  •  asturianu 
  •  azərbaycanca 
  •  Bahasa Indonesia 
  •  Bahasa Melayu 
  •  bosanski 
  •  brezhoneg 
  •  català 
  •  čeština 
  •  dansk 
  •  Deutsch 
  •  eesti 
  •  English 
  •  español 
  •  Esperanto 
  •  euskara 
  •  français 
  •  Frysk 
  •  Gàidhlig 
  •  galego 
  •  hrvatski 
  •  interlingua 
  •  íslenska 
  •  italiano 
  •  Kreyòl ayisyen 
  •  kréyòl gwadloupéyen 
  •  kurdî 
  •  latviešu 
  •  Lëtzebuergesch 
  •  lietuvių 
  •  magyar 
  •  Nederlands 
  •  norsk 
  •  norsk nynorsk 
  •  occitan 
  •  polski 
  •  português 
  •  română 
  •  sardu 
  •  shqip 
  •  slovenčina 
  •  slovenščina 
  •  srpski (latinica) 
  •  suomi 
  •  svenska 
  •  Tagalog 
  •  Tiếng Việt 
  •  Türkçe 
  •  Zazaki 
  •  Ελληνικά 
  •  беларуская 
  •  български 
  •  македонски 
  •  монгол 
  •  русский 
  •  српски / srpski 
  •  українська 
  •  հայերեն 
  •  עברית 
  •  العربية 
  •  فارسی 
  •  ਪੰਜਾਬੀ 
  •  پنجابی 
  •  پښتو 
  •  سرائیکی 
  •  नेपाली 
  •  मराठी 
  •  বাংলা 
  •  தமிழ் 
  •  മലയാളം 
  •  සිංහල 
  •  ไทย 
  •  မြန်မာဘာသာ 
  •  한국어 
  •  ქართული 
  •  ⵜⴰⵎⴰⵣⵉⵖⵜ 
  •  中文(简体) 
  •  中文(繁體) 
  •  日本語 
  •  粵語 
  • LocationMapViewer

    LocationMapViewer-Teneriffa-noncluster-bubble.png

    Author: klaus3b (k3b)
    License: GNU General Public License (free of charge)
    Platform: Android 4.1+
    Version: 0.3.8.210702 (2021-07-09)
    Languages: German and English
    Website: https://github.com/k3b/LocationMapViewer/wiki
    Install:

    F-Droid

    Source code: https://github.com/k3b/LocationMapViewer
    Programming language: Java

    A serviceprovider that allows other apps to show "points of interest" in a map through a simple intent-api.

    A serviceprovider that allows other apps to show "points of interest" in a map through a simple intent-api.

    Features

    Example Usage

    This android java code will show a map with 3 markers:

            Intent mapIntent = new Intent();
      
      // we want to view the map
            mapIntent.setAction(Intent.ACTION_VIEW);
    
      // this will be shown as primary marker in the map
      // the coordinate 53.2,8.8 is in north germany where the map is centered around
      // z=1 means zoomlevel=1 showing the continent
      // the marker's caption will be "primary marker"
            Uri uri = Uri.parse("geo:53.2,8.8?q=(primary+marker)&z=1");
            mapIntent.setDataAndType(uri, null);
      
      // this is the maps Caption
            mapIntent.putExtra(Intent.EXTRA_TITLE, "Hello Map");
      
      // the map will contain 2 additional point of interest
            mapIntent.putExtra("de.k3b.POIS",
                      "<poi ll='53.1,8.9'/>\n" +
                      "<poi ll='53.3,8.7' n='Say Hello' \n" +
                            " link='https://github.com/k3b/LocationMapViewer/' \n" +
                            " d='This will be shown as a Marker. When clicking on the marker you " + 
          "get this text and a link to LocationMapViewer' />");
    
            try {
                startActivityForResult(Intent.createChooser(mapIntent,"Choose app to show location"), 4711);
            } catch (Exception e) {
                e.printStackTrace();
            }
    

    GeoIntentDemoActivity.java is the sourcecode of a complete android demo app that uses LocationMapViewer (or any other provider that supports "geo:" uris)

    Minimal requirements:

    Requred permissions:

    Note: the app that uses LocationMapViewer via the intent api does not need these permissions.

    Resources

    LocationMapViewer is based on the libraries

    Retrieved from "https://wiki.openstreetmap.org/w/index.php?title=LocationMapViewer&oldid=2609968"

    Categories: 
    GPL
    Software for miscellaneous platforms
    Android software
    Java
    Mobile
    Software
    Free software
    Hidden categories: 
    Pages unavailable in German
    Pages unavailable in Spanish
    Pages unavailable in French
    Pages unavailable in Italian
    Pages unavailable in Dutch
    Pages unavailable in Russian
    Pages unavailable in Japanese
     


    Navigation menu


    Personal tools  



    English
    Create account
    Log in
     

    Namespaces  



    Page
    Discussion