webOS Nation Forums >  webOS Developers >  webOS Development > New Google Maps for WebOS - native javascript API
New Google Maps for WebOS - native javascript API
  Reply
Like Tree335Likes

 
Thread Tools Display Modes
Old 01/10/2013, 05:40 AM   #1201 (permalink)
Member
 
Posts: 9
Quote:
Originally Posted by michel_ng View Post
Wow, on my Veer the only issue i dont like is the app smoothness. Hope it will be really faster with the next release
First of all I would like to thank you for this great app!!
Then, do you think you could ever consider the possibility to develop even google earth app for the touchpad?? (Something similar to the ipad one?)
pietromx is offline   Reply With Quote
Old 01/10/2013, 11:00 PM   #1202 (permalink)
Member
 
Posts: 71
Quote:
Originally Posted by 72ka View Post
Hi, bad news for you, although the last tiles are in cache, the whole API not (no legal way to cache it),
If it is not legal to cache Google's tiles, can you cache OSM tiles?

Last edited by BenL; 01/11/2013 at 08:41 PM.
BenL is offline   Reply With Quote
Old 01/12/2013, 08:42 AM   #1203 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
Quote:
Originally Posted by BenL View Post
If it is not legal to cache Google's tiles, can you cache OSM tiles?
Hi, this is just a one secret what I have in ToDo for 2013 Answer is YES, I can make a function for tiles storing to database... we share the same idea and now it is not a secret

Sent from ICOO D70GT tablet
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Liked by jcmarcos likes this.
Thanked By: jcmarcos
Old 01/12/2013, 08:58 AM   #1204 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
Quote:
Originally Posted by pietromx View Post
First of all I would like to thank you for this great app!!
Then, do you think you could ever consider the possibility to develop even google earth app for the touchpad?? (Something similar to the ipad one?)
Your welcome. About google earth, is there some free sources and API? I think this couldn't be possible, google earth is closed source native app, uses openGL or directX on windows.

Anyway, yesterday i tested my new app wInNeR ported to Enyo 2, I'm falling in love to Enyo 2, because I bundled the framework with application, and it works on webOS 1.x, 2.x, 3.x, desktop Linux, desktop Windows and on my Android tablet as well. Included some webos compatibility libraries it handles screen orientation and backswipe too. More, I can use Mojo functions. Disadvantage is that Mojo is significantly faster on webOS phones than Enyo, mainly scroller performance. But the future is Enyo 2, I think it can run on new FirefoxOS or Ubuntu for phones as well.

Sent from ICOO D70GT tablet
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Liked by jcmarcos likes this.
Thanked By: jcmarcos
Old 01/12/2013, 10:10 AM   #1205 (permalink)
Member
 
Posts: 71
Quote:
Originally Posted by 72ka View Post
Hi, this is just a one secret what I have in ToDo for 2013 Answer is YES, I can make a function for tiles storing to database... we share the same idea and now it is not a secret
Cool. I'll look forward to that.

A related idea that I thought of last night, is the option of installing a base set of tiles of the entire planet (perhaps 1cm = 500km?), so when you're on a long plane trip and no internet access you can see where you are. (I have no idea how much space that would take up).
BenL is offline   Reply With Quote
Old 01/12/2013, 03:53 PM   #1206 (permalink)
pivotCE Developer
 
Posts: 2,073
Quote:
Originally Posted by 72ka View Post
Hi, this is just a one secret what I have in ToDo for 2013 Answer is YES, I can make a function for tiles storing to database... we share the same idea and now it is not a secret

Sent from ICOO D70GT tablet
Just for your info MapTool Pro adds an directory /media/internals/.MapTool/<OSM-Layer name>/<zoomlevel>/<tilenumberdir>/<tilenumber>.png

For me this dir has a size of 1.65GB and i'm not traveling that much.
So is that possible in a database?
Could it perhaps be possible to share one directory with both apps (i know not that easy for bug tracking at users)?

Btw. MapTool Pro has a build-in maptile downloader: Save maps for offline use with MapTool Pro | webOS Nation and there is an desktop jtiledownloader: L\'Haut-Parleur ŧ WebOS: MapTool 0.9.6 on PreCentral, Wikay 1.0.1 in the AppCatalog, Match This! Pro in the AppCatalog

And some more info, what can happen downloading many files
http://forums.webosnation.com/webos-...ml#post3206263
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 01/12/2013, 05:03 PM   #1207 (permalink)
pivotCE Developer
 
Posts: 2,073
Quote:
Originally Posted by BenL View Post
Cool. I'll look forward to that.

A related idea that I thought of last night, is the option of installing a base set of tiles of the entire planet (perhaps 1cm = 500km?), so when you're on a long plane trip and no internet access you can see where you are. (I have no idea how much space that would take up).
at OSM zoom size 5 (400-1000km cm) it will be about 20MB+. But in lower ones there are only 1-16 files.
Tirex/Overview - OpenStreetMap Wiki
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 01/13/2013, 03:32 AM   #1208 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
Quote:
Originally Posted by gizmo21 View Post
Just for your info MapTool Pro adds an directory /media/internals/.MapTool/<OSM-Layer name>/<zoomlevel>/<tilenumberdir>/<tilenumber>.png

Could it perhaps be possible to share one directory with both apps (i know not that easy for bug tracking at users)?
Wow... i really like this idea! It could be easy for me just to check if the tile is available on this path and load it from there, otherwise use the online tile.... why to have two big databases, right.
Sure only for devices with FileMgr service, but FileMgr is must have service for each webOS user.
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Old 01/22/2013, 12:23 AM   #1209 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
Hi,

I tried to use MapTool Pro tiles cache as source in Google Maps... worked for the first try, very nice!

The issue what I have to resolve, is the "smart cache" ... I tried make check if the tile exist in cache or not, it works.. but the filemgr or ajax call is asynchronous and thats the problem. The Google tile url getter needs the respond synchronized.

Thus, at this time, I can only switch between online or offline tiles.... I have to found some solution how to do the "smart caching"

Smart caching means to get from offline first and the online if doesnīt exist and then save them for offline use.
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Old 01/22/2013, 12:47 AM   #1210 (permalink)
pivotCE Developer
 
Posts: 2,073
So i assume Metaview (dev of MapTool Pro) has no issue with it, cause he only uses OSM and no google tile getter involved?
Else you could ask him for some support, even if he perhaps has some not so good feelings about your free and his paid app. But you could do some cross advertise as his app is still number one in OSM (different tile servers and downloader) and GPX track recording and track viewing field. [/ advertise off]
gizmo21 is offline   Reply With Quote
Old 01/22/2013, 04:29 AM   #1211 (permalink)
Member
 
Posts: 38
Hi 72ka,

I am beta-testing zhepree's new version of neato. In case you do not know it, it is an app that allows you to send text/links from one device to another. e.g. from the webbrowser to the phone or touchpad (and the new version is even cross-platform, supporting android and IOS).

Apparently when the old/original version of Google Maps was present on the devices before it was replaced with Bing maps, there were URL triggers, that fired up the Google Maps app when a Google Maps URL was received. When I send such an URL to my Pre3 now, all that opens is the Google Maps page in the browser.

Would it be possible for you to include such URL triggers in you app? That would be awesome!
ginpre is offline   Reply With Quote
Old 01/22/2013, 05:55 AM   #1212 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
Quote:
Originally Posted by ginpre View Post
Hi 72ka,

I am beta-testing zhepree's new version of neato. In case you do not know it, it is an app that allows you to send text/links from one device to another. e.g. from the webbrowser to the phone or touchpad (and the new version is even cross-platform, supporting android and IOS).

Apparently when the old/original version of Google Maps was present on the devices before it was replaced with Bing maps, there were URL triggers, that fired up the Google Maps app when a Google Maps URL was received. When I send such an URL to my Pre3 now, all that opens is the Google Maps page in the browser.

Would it be possible for you to include such URL triggers in you app? That would be awesome!
Hi, sounds good. I already started this thing to do... but stopped it for other more important things. It was mentioned before some posts. Now the app canīt set the default URI handler, the system have to call it directly - like Just type do. But, can you reproduce for me the steps how can I test it?
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Old 01/22/2013, 06:01 AM   #1213 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
Quote:
Originally Posted by gizmo21 View Post
So i assume Metaview (dev of MapTool Pro) has no issue with it, cause he only uses OSM and no google tile getter involved?
Else you could ask him for some support, even if he perhaps has some not so good feelings about your free and his paid app. But you could do some cross advertise as his app is still number one in OSM (different tile servers and downloader) and GPX track recording and track viewing field. [/ advertise off]
Looks like maptool stores the tile availability to variable, then the state is immediatelly available... But this way is nod good for me, it will need to scan all the file structure on app start.

Second issue.. the MapTool use tiles with different style.. if my app use MapTool tiles and other default styled tiles, then the map looks horrible

Conclusion... the best way could be the own directory with tiles only for my app, with variable containing their availability.

OR just switch between online map and offline MapTool pro map...

But... Iīm still trying to get managed this using more elegant way...
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Liked by checkmate, virox, hunland and 1 others like this.
Thanked by jcmarcos, virox
Old 01/23/2013, 02:53 AM   #1214 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
BINGO! I found the most elegant way how to do smart caching! If some thing canīt do from front... you can always to try it from back and this is the right way now

Instead of check if the tile is in cache and then make decision to load cached or online tile, what is impossible with async call, I just at first set hard path to all tiles from cache. If the tile is in cache, it shows and vice versa. Then I do the check if the tile is in cache and if not, the tile is downloaded on the background and at the same time, I change the same tile source path to online path and the tile is refreshed. All this can be asynchronous and works well. Only it tooks a bit longer to show uncached tiles, but cached tiles are loaded immediatelly and thats the point.

It was a hard work, because for direct acces to tile div, I had to rewrite all the OSM background (again) from ImageMapType to CustomMapType...

It is sooooo neat to have offline tiles... sadly that this canīt be done with Google tiles, but thatīs the terms.

EDIT: just added the floppy disc icon for tiles, which are downloading for user information until the tile is saved
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development

Last edited by 72ka; 01/23/2013 at 03:12 AM.
72ka is offline   Reply With Quote
Liked by checkmate, virox, jcmarcos and 1 others like this.
Thanked by bethel95, jcmarcos, T-Pad, virox
Old 01/23/2013, 03:25 AM   #1215 (permalink)
Member
 
jcmarcos's Avatar
 
Posts: 877
Quote:
Originally Posted by 72ka View Post
BINGO! I found the most elegant way how to do smart caching!
Congratulations! By the way, yesterday I discovered you were also into music some time go. Also, that you, you consider yourself an "INTJ", which I didn't have an idea of what it was, but after some reading, I think I am too!

Cheers!

(what a great place this is!)
__________________
Pre 3 on GSM Jazztel: UberKernel, Muffle logging & friends, Mode Switcher, Advanced System Menus & Prefs, and then some more.

Proudly choosing the loser side since 1982: Commodore VIC-20, C-64, Amiga 1000 & 3000, bPlan Pegasos & MorphOS, Psion Revo, Palm Pre...
jcmarcos is offline   Reply With Quote
Old 01/23/2013, 05:10 AM   #1216 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
Quote:
Originally Posted by jcmarcos View Post
Congratulations! By the way, yesterday I discovered you were also into music some time go. Also, that you, you consider yourself an "INTJ", which I didn't have an idea of what it was, but after some reading, I think I am too!

Cheers!

(what a great place this is!)
Ha funny, itīs not me! My name is Jan Heřman, not Jan Hermann. Just similar names...
I hope that nobody canīt find any info about my person, because Iīm always trying to protect my personality, it means, no social networks, no photos, no info about my relatives. I use internet as tool, not as book where I can save everything about me.
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Old 01/23/2013, 06:59 AM   #1217 (permalink)
Member
 
jcmarcos's Avatar
 
Posts: 877
Quote:
Originally Posted by 72ka View Post
itīs not me! My name is Jan Heřman, not Jan Hermann. Just similar names...
But same country! Indeed it's funny... Sure, I' was convinced it was you. How silly of me!

Quote:
Iīm always trying to protect my personality, it means, no social networks, no photos, no info about my relatives. I use internet as tool, not as book where I can save everything about me.
I fully agree. No social network at all for me, but not to protect myself, but because I consider them a waste of time. For example, this forum can be considered a social network... But here there is a concrete INTEREST in something, not just endless streams of party photos and greetings-a-go-go.

By the way, the other day I discovered that, actually, I'm on Facebook: There's a guy there whose name is exactly the same as mine. So now I can finally end discussion with my friends as why I'm not on Facebook: Because I'm already!

PUBS are the social network. For anything else, there's e-mail.

(by the way, if somebody finds this too personal and off topic, I can delete my last two posts)
__________________
Pre 3 on GSM Jazztel: UberKernel, Muffle logging & friends, Mode Switcher, Advanced System Menus & Prefs, and then some more.

Proudly choosing the loser side since 1982: Commodore VIC-20, C-64, Amiga 1000 & 3000, bPlan Pegasos & MorphOS, Psion Revo, Palm Pre...
jcmarcos is offline   Reply With Quote
Old 01/23/2013, 07:50 AM   #1218 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 475
OK, decided to add two toggle buttons. One for general enable of OSM smart caching, and second to use my own cache (in /media/internal/.cz.72ka.googlemaps) or use MappingTool cache. I think this is good enough for anybody...
Attached Images
File Type: png OSMCache.PNG (41.7 KB, 29 views) Email Attachment
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Liked by jcmarcos likes this.
Thanked By: jcmarcos
Old 01/23/2013, 08:03 AM   #1219 (permalink)
Member
 
Grabber5.0's Avatar
 
Posts: 3,652
Quote:
Originally Posted by 72ka View Post
OK, decided to add two toggle buttons. One for general enable of OSM smart caching, and second to use my own cache (in /media/internal/.cz.72ka.googlemaps) or use MappingTool cache. I think this is good enough for anybody...
Is the second toggle primarily for use if you also have MapTool installed and use it (and therefore may have cached tiles already in it)? The tiles would then be shared between the two apps? I confess I haven't been following the thread as very close recently, so I apologize if you already explained it.
__________________
Matt Williams
*How to install .patch files on your device*
Developer of: SMS Auto Forward/Reply, GPS Viewer,
Keyring converters for CSV, eWallet, & CodeWallet
Touchpad patches:Keyring HD,ClassicNote HD, YouTube HD (for 2.1 app), Show email recipient addresses for contacts
Phone patches: Forums fixes and enhancements patch, Weather Channel fix
All-device patches: Update GlobalSign certs, Google Sync https fix, Yahoo contact sync fix

Grabber5.0 is online now   Reply With Quote
Old 01/23/2013, 03:47 PM   #1220 (permalink)
Member
 
Posts: 71
Quote:
Originally Posted by 72ka View Post
OK, decided to add two toggle buttons. One for general enable of OSM smart caching, and second to use my own cache (in /media/internal/.cz.72ka.googlemaps) or use MappingTool cache. I think this is good enough for anybody...
I'm looking forward to trying the new version with caching.
BenL is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0