Discussion Forums  >  Maps, Device Location, Tracking

Replies: 4    Views: 98

nickrick32
Apple Fan
Profile
Posts: 111
Reg: Feb 28, 2011
location unknow...
1,110
05/28/13 02:00 AM (11 years ago)

How to get data from local instead of URL in Map plugin?

Hi, Is there a way to get data (txt,csv,json) from local (BT_Doc) instead of URL in the Screen Data URL for Local Map coordinates? I have a lot of data (100-10 000) and don't want to put on the web server it is better to put in the local BT_Doc to get it from there is much faster. Any idea?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/28/13 03:08 AM (11 years ago)
You should be able to add it to your project the same way you add images and stuff... In your MapScreen control panel, just list the local file as the 'dataURL'. Cheers! -- Smug
 
nickrick32
Apple Fan
Profile
Posts: 111
Reg: Feb 28, 2011
location unknow...
1,110
like
05/28/13 04:09 AM (11 years ago)
Hi, I already try this and all the time I receive error " There was a problem downloading some data. Check your internet connection then try again." I check if is file well formatted... but still receive this error.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/28/13 04:49 AM (11 years ago)
Hmm... It might be one of those plugins that didn't get an update for local files... If you can decipher this code (for the quiz) it should almost exactly apply to the map plugin. http://idevdepot.com/update-load-local-data-in-a-quiz-for-bt2-0/ or if you want, just replace your entire 'loadData' method with this one: https://dl.dropboxusercontent.com/u/115208762/loadData.txt Hope this helps! Cheers! -- Smug
 
Annonymous
Profile
05/28/13 09:39 AM (11 years ago)
Hi Smug, Thank you I will try one of this option.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.