Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 96

richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
08/15/14 10:22 PM (10 years ago)

Any MOBAC specialists out there? Offline maps query

I have been trying to create some maps. My first attempt got a reasonable result except the map was too big. I am trying to get a close up using just 2 layers (17 & 18) but over and over again the zoom levels will not create any tiles when ticked (they were created on my first map no problem but I don't know what I did differently). I have gone through Smugs & Mobac's instructions but can't seem to find out why this is?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/16/14 05:27 AM (10 years ago)
Richard, The detail parts are (for the most part) on page 17 of the MOBAC tutorial. It expects you to have a region selected by the time you get around to choosing your levels for the database. Ensure you have 'something' selected. Doesn't have to be much, but it has to be something. Your chosen database should be created and displayed in the "Atlas Content" window. If it's selected, and you have one or more checkboxes selected in the 'Zoom Levels' section, then pressing the "add selection" button *should* add those selected levels to your database, and display in the 'Atlas Content' window. What behavior are you experiencing? Is this a Mac or a PC? Cheers! -- Smug
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/17/14 12:45 AM (10 years ago)
Hi Smug I use a Mac and, for now, am wanting to add maps to my IOS app. After writing my forum query I went on You Tube (which, of course, I should have done first - fool that I am) and after a couple of videos and a couple of hours playing around got some great maps. However, your screenshots from the plugin section show buttons above and below the map. I have selected buttons in the control panel but get none in the simulator. To this end I can zoom in but not out? The other thing is I used the GPX box to add items to the atlas but these don't show up on the atlas when saved (your instructions suggest that you have further tutorials on this)? Regards Richard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/17/14 05:17 AM (10 years ago)
I haven't documented the GPX sections yet, I've kind of moved over to keeping my locations in an SQLite database instead, so that I can segregate them. "your screenshots from the plugin section show buttons above and below the map" - which image from which document? Cheers! -- Smug
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/18/14 08:11 PM (10 years ago)
Hi Smug Sorry, got distracted for a couple of days, back now. My map looks very much like your screenshots (on the plugin purchase page) 1, 5 & 6. Map with red pin but the pin has to be clicked to get the info box. Screenshots 2,3 & 4 are very similar to my Genemotion emulator (which I use for android) and am not using here as I am using the Mac simulator. I have not tried using an iPad or iPhone at the moment (I don't actually have a working one with me). I have re saved the button instructions but on the Xcode simulator they don't appear. Is it possible to add locations via the GPX (i.e. physically write them on) and have them show up on the map? I am able to do that but when the atlas is created they do not show and I would like (need) them to be visible. Regards Richard
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/18/14 09:16 PM (10 years ago)
Well, another reason I haven't bothered much with the Mobac GPX files, is because the POI doesn't really use a marker, so much as a 'dot'. And it wouldn't really connect with BT functionality so well, so I just use mobac for map display. If you want to venture further, you can read about it here: http://mobac.sourceforge.net/quickstart/using5.htm Your best bets are: 1) although long and tedious, you can enter the locations via BT Control panel. Not my first choice, probably my last. But, if you don't have other resources available to you, sometimes it's the most reliable way. 2) External childItem file. It can be a text file included with the app, or a online database driven php file. Or anything in between. The complexity comes in "if" you want the user to go to another page by clicking on the marker. If all you're doing is displaying a location (or locations) with a marker, then an external childItem file will be the fastest easiest way to go. Collate your data in an excel spreadsheet, and use an online utility (or download and install the Smug ChildItem creator in your self hosted server - http://www.smugwimp.com/btMods/sjcon.zip) to convert the data into BT compliant JSON childItems, then include it in the bundle, or leave it on a server, and access it via dataURL. If you want users to 'tap' on the marker and go to another page, either create childItems in the control panel and link them, or study the loadScreenObject method of 'designing' your next screen as part of your json. I keep threatening to write a 'how to' on loadScreenObject, and although it's not complete and still needs editing, an unfinished 'draft' version is available here: https://dl.dropboxusercontent.com/u/115208762/lso_tut/loadScreenObjectTut.pdf I've created the offline map plugin to simulate (as close as possible) the same behavior as the location map plugin from David. In both, you have to tap the marker to have the popup show. On iOS, I'm having an issue with the toolbar, so that might not work at the moment. This would have the buttons for 'refresh' and 'show user location'. I recently updated the plugin, so just about everything should work, except that pesky toolbar. But all the other control panel options should work. I'm not sure what you mean by 'I have resaved the button instructions'... if you could reword that. Cheers! -- Smug One note though; with respect to GPX files in the offlineMapKit, I really haven't put that functionality into it. So even if you were to use your MOBAC GPX file, you'd have to alter the code to accomodate it, which might not be feasible in your time constraints... Sorry.
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/18/14 10:03 PM (10 years ago)
Time is not really an issue although sooner would be better. In Map Behavior I clicked save again (resaved) to make sure I had saved the button settings but still no button appear. I am trying to make an offline map of Nan (my app currently has a hand drawn map from the magazine) with about 30, or so, dots (along with the names) showing where they are in town. E.g. coffee shops, restaurants, hotels & places of interest. I can place them on with the GPX but as you say it's not enabled with BT so does not save on create. I would like the user to open and scroll around, zoom in and out. The mapsource guide says I can do this but does not say how.
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/19/14 02:15 AM (10 years ago)
Hey Smug Just wondering if you have this problem in Guam - I have tried Google Maps, positioning the mouse to get the co-ordinates, and a satellite GPS program, and I am getting all different kinds of reading (none right)so trying to manually put the pins onto the map is driving me nuts. I have a temple the wrong side of the main river. One of the main hotels in the middle of a park - however the hospital remains in the right place :) I think I am going to leave this until I get back to Nan at the beginning of Sept and manually get the GPS readings and try that.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
08/19/14 02:36 AM (10 years ago)
For most of my points of interest, I spent time out in my car and on the scooter. I have a Garmin Montana 600 and a Nuvi 1490 that is used for recording POI's and tracks. Usually I'll have my GoPro mounted to catch the area while I'm driving, and play it all back while documenting where I went. For location utilities, there is a great free online page at http://itouchmap.com/latlong.html If you have a PC you can use, I highly recommend 'GPSMapEdit' from www.geopainting.com. It costs about $60 USD, and requires 'an actual PC' for activation, so it's no good on VMWare or Parallels. But if you have an 'extra' machine, I've used this software for years on my Garmin maps, and it's easy to deal with, and very precise. It allows for a Google, Open Street Map, and other maps as an 'underlay' for your own map. It's what I use to create my streets for my routable maps, and the error margin is within a few feet. You might also take a look at GPSBabel, a conversion utility of monsterous proportions. It converts almost anything into almost anything else. Very powerful, but mostly command line. http://www.gpsbabel.org Cheers! -- Smug
 
richardemery839
Aspiring developer
Profile
Posts: 258
Reg: May 15, 2013
Bangkok
9,480
like
08/19/14 08:28 PM (10 years ago)
Wow. You have done it again Smug. I was beginning to loose hope on the whole map thing and then you gave me itouchmap. 9 out of 9 co-ordinates perfect. Yes its a bit of work but worth it.
 

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.