PageSourceSearch

https://wemap-documentation.pages.dev/assets/js/fa2e4eae.d998f555.js

js wemap-documentation.pages.dev collected 2026-10-03 06:06:30 UTC 11,466 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocumentation_v_2=self.webpackChunkdocumentation_v_2||[]).push([[1640],{14794(u,e,t){t.r(e),t.d(e,{assets:()=>a,contentTitle:()=>r,default:()=>d,frontMatter:()=>i,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"examples/points-of-interest","title":"Points of Interest","description":"A PointOfInterest can display an image at any geographic coordinate. A common use case is to show a marker or pin representing a location that users can tap to get more information.","source":"@site/android-native_versioned_docs/version-0.x/examples/points-of-interest.mdx","sourceDirName":"examples","slug":"/examples/points-of-interest","permalink":"/docs/android-native/examples/points-of-interest","draft":false,"unlisted":false,"tags":[],"version":"0.x","frontMatter":{"id":"points-of-interest","title":"Points of Interest","sidebar_label":"Points of Interest"},"sidebar":"androidNative","previous":{"title":"Navigation information","permalink":"/docs/android-native/examples/navigation-information"}}');var D=t(74848),s=t(28453),o=t(49408);const i={id:"points-of-interest",title:"Points of Interest",sidebar_label:"Points of Interest"},r=void 0,a={},c=[{value:"Add POI(s) in AR",id:"add-pois-in-ar",level:2},{value:"Examples",id:"examples",level:2}];function l(u){const e={a:"a",blockquote:"blockquote",code:"code",h2:"h2",p:"p",pre:"pre",...(0,s.R)(),...u.components};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(e.p,{children:["A ",(0,D.jsx)(e.code,{children:"PointOfInterest"})," can display an image at any geographic coordinate. A common use case is to show a marker or pin representing a location that users can tap to get more information."]}),"\n",(0,D.jsxs)(e.blockquote,{children:["\n",(0,D.jsx)(e.p,{children:"Adding custom POIs to the map is not available yet. Only AR is supported for now."}),"\n"]}),"\n",(0,D.jsx)(e.h2,{id:"add-pois-in-ar",children:"Add POI(s) in AR"}),"\n",(0,D.jsxs)(e.p,{children:["To create a simple Point of Interest in AR, you have to provide at least its ",(0,D.jsx)(e.code,{children:"name"}),", ",(0,D.jsx)(e.code,{children:"coordinate"}),", and ",(0,D.jsx)(e.code,{children:"imageURL"}),"."]}),"\n",(0,D.jsx)(e.pre,{children:(0,D.jsx)(e.code,{className:"language-kotlin",children:'val poi = PointOfInterest(\n    "Example POI",\n    Coordinate(43.610628, 3.876654),\n    imageURL = "https://api.getwemap.com/images/pps-categories/icon_circle_maaap.png"\n)\n'})}),"\n",(0,D.jsxs)(e.p,{children:["To add this newly created POI to the AR scene, provide it to the ",(0,D.jsx)(e.code,{children:"PointOfInterestManager"}),":"]}),"\n",(0,D.jsx)(e.pre,{children:(0,D.jsx)(e.code,{className:"language-kotlin",children:"geoARView.pointOfInterestManager.addPOI(poi)\n"})}),"\n",(0,D.jsx)(e.p,{children:"To remove this POI later, use:"}),"\n",(0,D.jsx)(e.pre,{children:(0,D.jsx)(e.code,{className:"language-kotlin",children:"geoARView.pointOfInterestManager.removePOI(poi)\n"})}),"\n",(0,D.jsxs)(e.blockquote,{children:["\n",(0,D.jsx)(e.p,{children:"Make sure to remove only POIs you have added yourself. Many maps include POIs provided by the Wemap backend. Attempting to remove such POIs will result in an error, as this is not permitted."}),"\n"]}),"\n",(0,D.jsx)(e.h2,{id:"examples",children:"Examples"}),"\n",(0,D.jsxs)(e.p,{children:["For additional examples and sample implementations of WemapSDKs, visit the ",(0,D.jsx)(e.a,{href:"https://github.com/wemap/wemap-sdk-sample-apps-ios",children:"official GitHub repository"}),"."]}),"\n",(0,D.jsx)(e.p,{children:"Clone the repository and follow the README instructions to run the sample application."}),"\n",(0,D.jsx)(o.A,{items:[{type:"link",href:"https://github.com/wemap/wemap-sdk-sample-apps-android/tree/main/positioning-ar",label:"GeoAR+Positioning sample"}]})]})}function d(u={}){const{wrapper:e}={...(0,s.R)(),...u.components};return e?(0,D.jsx)(e,{...u,children:(0,D.jsx)(l,{...u})}):l(u)}},49408(u,e,t){t.d(e,{A:()=>N});t(96540);var n=t(34164),D=t(26972);const s=new Intl.Segmenter(void 0,{granularity:"grapheme"});var o=t(21312),i=t(53465);var r=t(16654),a=t(28774),c=t(17559),l=t(51107);const d="cardTitleIcon_GcdP";var F=t(74848);function m(u){let e=u.icon;return(0,F.jsx)("span",{className:(0,n.A)(c.G.docs.docCard.icon,d),children:e})}const p="cardTitleText_nuEl";function E(u){let e=u.title;return(0,F.jsx)("span",{className:(0,n.A)("text--truncate",c.G.docs.docCard.title,p),children:e})}const C="cardTitle_mcqP";function h(u){let e=u.item,t=u.title,D=u.icon;return(0,F.jsxs)(l.A,{as:"h2",className:(0,n.A)(c.G.docs.docCard.heading,C),title:t,children:[D&&(0,F.jsx)(m,{item:e,icon:D}),(0,F.jsx)(E,{item:e,title:t})]})}const A="cardDescription_L2fP";function f(u){let e=u.description;return(0,F.jsx)("p",{className:(0,n.A)("text--truncate",c.G.docs.docCard.description,A),title:e,children:e})}const x="cardContainer_KhuF";function g(u){let e=u.className,t=u.href,D=u.children;return(0,F.jsx)(a.A,{href:t,className:(0,n.A)("card padding--lg",c.G.docs.docCard.container,x,e),children:D})}function B(u){let e=u.item,t=u.className,n=u.href,D=u.icon,s=u.title,o=u.description;return(0,F.jsxs)(g,{href:n,className:t,children:[(0,F.jsx)(h,{item:e,icon:D,title:s}),o&&(0,F.jsx)(f,{item:e,description:o})]})}function j(u){var e;const t=function(u){var e;const t=null==(e=s.segment(u)[Symbol.iterator]().next().value)?void 0:e.segment;return t&&(/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCCF\uDCD0\uDCF6-\uDCFF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAE-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDE5F\uDE66-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFA]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDEE5\uDEE9\uDEEB-\uDEF0\uDEF3-\uDEFF\uDFDA-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE58-\uDE5F\uDE6E-\uDEFF]|\uD83F[\uDC00-\uDFFD])/.test(t)||/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED8\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8
1E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8])/.test(t))?{emoji:t,rest:u.slice(t.length)}:{emoji:null,rest:u}}(u.label),n=null!=(e=t.emoji)?e:function(u){return"category"===u.type?"\ud83d\uddc3":(0,r.A)(u.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17"}(u);return{icon:n,title:t.rest.trim()}}function v(u){var e;let t=u.item;const n=(0,D.Nr)(t),s=function(){const u=(0,i.W)().selectMessage;return e=>u(e,(0,o.T)({message:"1 item|{count} items",id:"theme.docs.DocCard.categoryDescription.plurals",description:"The default description for a category card in the generated index about how many items this category includes"},{count:e}))}();return n?(0,F.jsx)(B,Object.assign({item:t,className:t.className,href:n,description:null!=(e=t.description)?e:s(t.items.length)},j(t))):null}function y(u){var e,t;let n=u.item;const s=(0,D.cC)(null!=(e=n.docId)?e:void 0);return(0,F.jsx)(B,Object.assign({item:n,className:n.className,href:n.href,description:null!=(t=n.description)?t:null==s?void 0:s.description},j(n)))}function I(u){let e=u.item;switch(e.type){case"link":return(0,F.jsx)(y,{item:e});case"category":return(0,F.jsx)(v,{item:e});default:throw new Error("unknown item type "+JSON.stringify(e))}}const P="docCardListItem_W1sv";function b(u){let e=u.className;const t=(0,D.a4)();return(0,F.jsx)(N,{items:t,className:e})}function w(u){let e=u.item;return(0,F.jsx)("article",{className:(0,n.A)(P,"col col--6"),children:(0,F.jsx)(I,{item:e})})}function N(u){const e=u.items,t=u.className;if(!e)return(0,F.jsx)(b,Object.assign({},u));const s=(0,D.d1)(e);return(0,F.jsx)("section",{className:(0,n.A)("row",t),children:s.map((u,e)=>(0,F.jsx)(w,{item:u},e))})}},53465(u,e,t){t.d(e,{W:()=>a});var n=t(96540),D=t(44586);const s=["zero","one","two","few","many","other"];function o(u){return s.filter(e=>u.includes(e))}const i={locale:"en",pluralForms:o(["one","other"]),select:u=>1===u?"one":"other"};function r(){const u=(0,D.A)().i18n.currentLocale;return(0,n.useMemo)(()=>{try{return function(u){const e=new Intl.PluralRules(u);return{locale:u,pluralForms:o(e.resolvedOptions().pluralCategories),select:u=>e.select(u)}}(u)}catch(e){return console.error('Failed to use Intl.PluralRules for locale "'+u+'".\nDocusaurus will fallback to the default (English) implementation.\nError: '+e.message+"\n"),i}},[u])}function a(){const u=r();return{selectMessage:(e,t)=>function(u,e,t){const n=u.split("|");if(1===n.length)return n[0];n.length>t.pluralForms.length&&console.error("For locale="+t.locale+", a maximum of "+t.pluralForms.length+" plural forms are expected ("+t.pluralForms.join(",")+"), but the message contains "+n.length+": "+u);const D=t.select(e),s=t.pluralForms.indexOf(D);return n[Math.min(s,n.length-1)]}(t,e,u)}}},28453(u,e,t){t.d(e,{R:()=>o,x:()=>i});var n=t(96540);const D={},s=n.createContext(D);function o(u){const e=n.useContext(s);return n.useMemo(function(){return"function"==typeof u?u(e):{...e,...u}},[e,u])}function i(u){let e;return e=u.disableParentContext?"function"==typeof u.components?u.components(D):u.components||D:o(u.components),n.createElement(s.Provider,{value:e},u.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.