javascript - wikitude: POI is not render accordingly -


i'm able launch wikitude poi sample using android phone. have tried create own wcf retrieve geolocation data. whenever retrieve own geolocation data, marker not display on screen. but, if use geolocation data sample itself, markers show on screen.

i'm sure that, $.ajax able own geolocation data. not able display it. how verify that? display geolocation data have retrieved on phone screen. next, did is

  1. display current geolocation on phone screen (latitude: 3.1229609, longitude: 101.6345425)
  2. use browser confirm again geolocation
  3. instead of render markers data retrieved wikitude, hardcoded 1 geolocation data available sample data. (marker 1, "longitude":"0.045","latitude":"0.056")
  4. i hardcode geolocation nearest me. (marker 2, latitude: 3.116562, longitude: 101.646538)

only marker1 being rendered on screen. regardless how or move phone camera to, still couldn't find marker2.

i'm wondering, wikitude poi location same geolocation in google maps?

try assigning function onlocationchanged trigger , output current location. location used wikitudesdk.

ar.context.onlocationchanged = function(lat,lon,alt,acc)                                 { alert("lat: " + lat + ", lon: " + lon }; 

additionally can check if correct location reported setting breakpoint in java code @ abstractarchitectcam's anonymous locationlistener class' onlocationchanged method.

marker 2 won't show if location far away (which appears marker 1 visible).

disclaimer: work wikitude.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -