Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 109

Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
11/07/14 05:06 AM (9 years ago)

Location Map by David

Hi i would like to use this plugin but i think doesnt work .. i have seen some erlier posts that this plugin had some erros but they say tha the fixed it... My problem is that i have made my map working (Google map APIv2 ) and see it in my app but i cant see the places i have imported in the plugins control panel.. the BT configure file has them.. but the app cant load them.. I use eclipse for android and i am self hosted BT user with BTv3 Thanks in advance
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/09/14 12:56 AM (9 years ago)
Hi @Caslor, It for sure works in Android. I just helped somebody else get it working. What sort of errors are you getting? If I read your post correctly, you are ABLE to see the map tiles, but NO location pins come up? Is that the case? Are you testing this on a real device or in the simulator? Anything showing up in LogCat when you try to load that page? If there was a JSON error preventing the locations from coming up, you'd likely see it there. Thanks! Mark
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
11/09/14 02:16 AM (9 years ago)
i am testing it in my real smartphone device... (after compile my app from eclipse and install it in my phone) yes this is my case.. no location pins in the map this is the debug : 11-09 11:05:08.308: W/ZZ(25623): BT_screen_menuButtons:button clicked 11-09 11:05:08.308: W/ZZ(25623): BT_screen_menuButtons:handleItemTap loads screen with itemId: "D43AF7D17AD739537774BD2" 11-09 11:05:08.308: W/ZZ(25623): BT_application:getScreenDataByItemId itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.308: W/ZZ(25623): BT_screen_menuButtons:loadScreenObject. Loading screen with JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.308: W/ZZ(25623): BT_activity_host:initPluginWithScreenData. Calling helper method in BT_application 11-09 11:05:08.308: W/ZZ(25623): BT_application:initPluginWithScreenData. Creating plugin with JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.308: W/ZZ(25623): BT_screen_map:setScreenData JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.308: W/ZZ(25623): BT_activity_host:showFragmentForPlugin. Showing plugin with JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.308: W/ZZ(25623): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 11-09 11:05:08.318: W/ZZ(25623): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.318: W/ZZ(25623): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.368: W/ZZ(25623): BT_screen_menuButtons:onPause JSON itemId: "EAED19FF263E51CE45840F7" itemType: "BT_screen_menuButtons" itemNickname: "Homie2" 11-09 11:05:08.368: W/ZZ(25623): BT_screen_menuButtons:onStop JSON itemId: "EAED19FF263E51CE45840F7" itemType: "BT_screen_menuButtons" itemNickname: "Homie2" 11-09 11:05:08.368: W/ZZ(25623): BT_screen_map:onAttach JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.368: W/ZZ(25623): BT_screen_map:onCreate JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.368: W/ZZ(25623): BT_screen_map:onCreateView JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.378: V/nvaudio_hw(152): nvaudio_dev_get_parameters : fm_audio 11-09 11:05:08.378: I/str_params(152): key: 'fm_audio' value: '' 11-09 11:05:08.378: V/nvaudio_hw(152): nvaudio_dev_set_parameters : nv_param_media_routing=2 11-09 11:05:08.378: V/nvaudio_hw(152): Media is routed to :2 11-09 11:05:08.408: W/ZZ(25623): BT_screen_map:onCreate. Found Google Maps v2 API Key: AIzaSyBwMS08_1ON_sxDUT7DiEcyXEGuRNrx3fk 11-09 11:05:08.418: I/Google Maps Android API(25623): Google Play services package version: 6188036 11-09 11:05:08.468: D/USER_EVENTS(25623): Event: type=78, status: MD, data: T 11-09 11:05:08.638: D/REQUEST(25623): Add Data Request: 147 11-09 11:05:08.638: D/USER_EVENTS(25623): Event: type=113, status: mc, data: 11-09 11:05:08.658: D/REQUEST(25623): Connection opened to:https://clients4.google.com/glm/mmap/api 11-09 11:05:08.658: D/REQUEST(25623): Open Connection 11-09 11:05:08.688: W/ZZ(25623): BT_screen_map:onCreateView using data from app's configuration file 11-09 11:05:08.688: W/ZZ(25623): BT_screen_map:parseScreenData 11-09 11:05:08.688: W/ZZ(25623): BT_screen_map:parseScreenData EXCEPTION org.json.JSONException: No value for subTitle 11-09 11:05:08.688: W/ZZ(25623): BT_screen_map:showMapPins 11-09 11:05:08.688: W/ZZ(25623): BT_screen_map:showMapType "standard" 11-09 11:05:08.708: W/ZZ(25623): BT_screen_map:setMapBoundsToPois 11-09 11:05:08.708: W/ZZ(25623): BT_screen_map:onActivityCreated JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.708: W/ZZ(25623): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 11-09 11:05:08.718: W/ZZ(25623): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.718: W/ZZ(25623): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.718: W/ZZ(25623): BT_screen_map:onStart JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.718: W/ZZ(25623): BT_screen_map:onResume JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme" 11-09 11:05:08.718: W/ZZ(25623): BT_screen_map:onCreateOptionsMenu JSON itemId: "D43AF7D17AD739537774BD2" 11-09 11:05:08.728: W/ZZ(25623): BT_screen_map:onCreateOptionsMenu JSON itemId: "D43AF7D17AD739537774BD2" itemType: "BT_screen_map" itemNickname: "mapme"
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/09/14 08:29 PM (9 years ago)
Everything seems to be progressing smoothly until it hits this: 11-09 11:05:08.688: W/ZZ(25623): BT_screen_map:onCreateView using data from app's configuration file 11-09 11:05:08.688: W/ZZ(25623): BT_screen_map:parseScreenData 11-09 11:05:08.688: W/ZZ(25623): BT_screen_map:parseScreenData EXCEPTION org.json.JSONException: No value for subTitle I don't know if a sub title for each map pin is required or not, but it would be an interesting experiment to provide one where they are missing and see if it changes anything. Mark
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
11/09/14 09:54 PM (9 years ago)
Ohh thanks :) My mistake... i didnt know that had to write necessary something in the '' subtitle'' as i was placing my latide manualy when i place a text to the subtitle the map shows the placemarks (my app is in design mode and took the changes ) now having problem that they dont work the placemarks i have made with the ''drive directions'' i dont know if that is because my phone hadnt log in a gps (inside home) i will try it when i will be outside with the satelites loged in to see if i have the same problem
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/09/14 11:28 PM (9 years ago)
Glad to hear you got the pins resolved! I know another person who is having the same issue with driving directions on Android. I'll being doing some investigation to figure out what the issue is. Can't say how long that will take though. Mark
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
11/10/14 12:16 AM (9 years ago)
Thanks for the Help :) i test it with the Gps on and there are no directions.. even though i can use it as it is for now and when you came with a solution i will be glad to read it... one question i read that if o want to place more than a 12 placemarks i have to load them from an external link.. why ? can i place a placemark that will open a new screen (as details ) but and road instractions also ?? or one of them only.. thanks in advance
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/10/14 07:25 AM (9 years ago)
You can absolutely have more than 12 locations configured in your control panel. I know one member who has 300+. I think there discussion on loading them from an external link has to do with keeping the size of the BT_Config.txt file down a bit. I've seen instances where if the file is large...as in several megabytes, it causes issues loading. For the most part, though, you should be safe just doing it all from the control panel. I do believe you can link to another screen that has details and/or driving directions. I think that's one of the options. Mark
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
11/11/14 04:26 AM (9 years ago)
The problem about the ''instractions'' was mention and in a previous post... that had one temp solution <a href="http://www.buzztouch.com/forum/thread.php?tid=927A8FE5673AEAD81FF064B&fid=0B19EC7C02CBDD92F12FD08&sortColumn=FT.id&sortUpDown=DESC&currentPage=1" target="_blank" rel="nofollow">http://www.buzztouch.com/forum/thread.php?tid=927A8FE5673AEAD81FF064B&fid=0B19EC7C02CBDD92F12FD08&sortColumn=FT.id&sortUpDown=DESC&currentPage=1</a> The problem is in the control panel of BT the solution is to load the placemarks from an external txt file i test it and it works fine... my JSON had this : "calloutTapChoice":"showDirections" instead of : "loadScreenWithItemId": "showDirections" i read tha the "calloutTapChoice" is the new method for new BT but seems that doesnt worke for me Also i try to place in the same placemark function to have details (open new screen) & drive me direction but didnt manage to make it work.. loads only the first one that reads in code example : { "itemId": "TEST45TEST45", "itemType": "BT_locationItem", "loadScreenWithItemId": "showDirections", <---- Load this first and ignore next "loadScreenWithItemId":"3AD8D357847A21A67D185DD" <-- ignored "title": "Test", "subTitle": "test for both", "latitude": "25.783839", "longitude": "37.897319" },
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
02/05/15 08:07 PM (9 years ago)
This works for me on Android and bt3.0 and the Location Map plugin (latest version). Loading 392 locations with this format. Driving directions work too. NOTE i'm using itemType":"BT_mapLocation { "childItems":[ { "itemId":"11111111", "itemType":"BT_mapLocation", "loadScreenWithItemId":"showDirections", "latitude":"33.55577", "longitude":"-81.48357", "title":"Aiken State Park", "subTitle":"South Fork Edisto River" }, { "itemId":"11111112", "itemType":"BT_mapLocation", "loadScreenWithItemId":"showDirections", "latitude":"34.1831", "longitude":"-82.7022", "title":"Allen Creek", "subTitle":"Richard B Russell Lake" },
 

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.