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 Tree334Likes

 
Thread Tools Display Modes
Old 11/19/2012, 10:52 AM   #1121 (permalink)
Member
 
Posts: 65
Can Google Maps be modified to ask "Allow Once / Allow Always / Don't Allow" for the location services? On my Pre3 is just asks "Allow Once / Don't Allow", I'd be happy if I didn't have to give it permission every time I run it.
BenL is offline   Reply With Quote
Old 11/19/2012, 11:19 AM   #1122 (permalink)
Member
 
Grabber5.0's Avatar
 
Posts: 3,341
That is in your location settings.. it has nothing to do with the app.
__________________
Matt Williams

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 11/19/2012, 09:47 PM   #1123 (permalink)
Member
 
Posts: 65
Quote:
Originally Posted by Grabber5.0 View Post
That is in your location settings.. it has nothing to do with the app.
On startup, for some apps I'm asked "Allow Once / Allow Always / Don't Allow" for the location services, for some it just asks "Allow Once / Don't Allow". If it was purely a system setting, shouldn't it ask the same question for all apps? If it's not the app, then what is causing the difference?
---Ben
BenL is offline   Reply With Quote
Old 11/23/2012, 02:35 AM   #1124 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
Quote:
Originally Posted by BenL View Post
Can Google Maps be modified to ask "Allow Once / Allow Always / Don't Allow" for the location services? On my Pre3 is just asks "Allow Once / Don't Allow", I'd be happy if I didn't have to give it permission every time I run it.
Hi BenL,
I really canīt control it at the application level. Thereīs no options in Mojo.
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Old 11/26/2012, 10:17 AM   #1125 (permalink)
Member
 
Posts: 270
I have 2 questions ... First, how can i remove bing maps from my 2.2.4 webOS completly? Uninstalling over Preware seems not to fully remove this crap. The second question, klickTel seems not to work with Google Maps, i already defined Google Maps as standard adress tool but klickTel still starts HP Maps
michel_ng is offline   Reply With Quote
Old 11/26/2012, 03:59 PM   #1126 (permalink)
pivotCE Developer
 
Posts: 1,976
As long as Jan hasn't implemented some official cross-app paramters you can try it with this hack in Klicktel by using the just-type parameters (sorry jan to "misuse" your app):

Change the file /media/cryptofs/apps/usr/palm/applications/com.telegate.klicktel/app/lib/utilities.js internalz to:

Quote:
new Mojo.Service.Request('palm://com.palm.applicationManager', {
method: 'open', parameters: {
// id:"com.palm.app.maps",
id:"cz.72ka.googlemaps",
params
: {
// saddr: '',
// daddr: wgslong + ' ' + wgslat
target:'maploc:'+ wgslong + ',' + wgslat
}
}
});
Then after reboot you can press "Route (Google)" in Klicktel and press ENTER in googlemaps once and the destination will be displayed. As i said it's kind of a hack like the one for mojowhatsup, but working for me on 2.2.4 (but i think it is webOS version independent).
__________________
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 ?

Last edited by gizmo21; 11/27/2012 at 02:03 AM.
gizmo21 is offline   Reply With Quote
Old 11/26/2012, 04:14 PM   #1127 (permalink)
Member
 
Posts: 270
Works pretty well gizmo21!

Just made a little patch integrating Google Maps into klickTel ...
michel_ng is offline   Reply With Quote
Old 11/29/2012, 01:23 AM   #1128 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
So, today I have a very short free time, continuing in development... just finished integrating the OSM Map layer. Next I want to include a 45° imagery view rotate, but it needs more thinking about it, where to include in the GUI...
Attached Images
File Type: png OSMonGmaps2.png (128.0 KB, 45 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.
Old 11/29/2012, 01:25 AM   #1129 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
Quote:
Originally Posted by gizmo21 View Post
As long as Jan hasn't implemented some official cross-app paramters
Hi, please, where I can find the official cross-app parameters? I can include them
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Old 11/29/2012, 03:19 AM   #1130 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
Looks like I'm done with 45 degree imagery. The new item in bottom command menu will appear if the 45deg tilt is available (usually big zoom and with satellite or hybrid map type only). Then, every tap on the "rotate" icon will rotate the scene 90 degree. If you have directions activated, the rotate icon force to hide the directions arrows back and forward, because the screen is too small for more than 5 items.
Attached Images
File Type: png imagery1.PNG (384.6 KB, 39 views) Email Attachment
File Type: png imagery2.PNG (371.6 KB, 28 views) Email Attachment
File Type: png imagery3.PNG (351.2 KB, 25 views) Email Attachment
File Type: png imagery4.PNG (385.4 KB, 23 views) Email Attachment
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Liked by checkmate, Rockbeast, hunland and 2 others like this.
Thanked by jcmarcos, T-Pad
Old 11/29/2012, 04:44 AM   #1131 (permalink)
Member
 
jcmarcos's Avatar
 
Posts: 877
Quote:
Originally Posted by 72ka View Post
looks like i'm done with 45 degree imagery.
goooooooorgeous!
__________________
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 11/29/2012, 06:57 AM   #1132 (permalink)
Member
 
Posts: 270
@72ka

it would be nice, as example for parameters, if you click on Show or Route in klickTel so it opens the Google Maps but i still need to press Enter to show the Point on the map!
michel_ng is offline   Reply With Quote
Old 11/29/2012, 07:27 AM   #1133 (permalink)
pivotCE Developer
 
Posts: 1,976
@jan you just have to catch launch/open Parameters in your app, similar (or same) as just Type launching:
https://developer.palm.com/content/a...-overview.html

Then please document here, so devs can launch your app from their app:

Cross-App Launching - WebOS101

There could be different parameters for:
launch with marker adress
launch with marker location (different formats)
route to adress as destination
route to location as destination

Last edited by gizmo21; 11/29/2012 at 12:34 PM.
gizmo21 is offline   Reply With Quote
Old 11/30/2012, 07:59 AM   #1134 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
The 0.2.7 has been released. Enjoy the OSM maps and imagery rotation.

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 and er dp like this.
Thanked By: jcmarcos
Old 11/30/2012, 08:40 AM   #1135 (permalink)
Member
 
Posts: 270
Works nice, but has a little bug i think. I get blue screen on penultimate zoom stage with OSM activated
Attached Images
File Type: png googlemaps_2012-30-11_153725.png (50.3 KB, 24 views) Email Attachment
michel_ng is offline   Reply With Quote
Old 12/02/2012, 08:58 AM   #1136 (permalink)
pivotCE Developer
 
Posts: 1,976
perhaps a zoomlevel restriction in OSM API.

btw. OSM is really great. could the traffic layer could be overlayed the OSM? It is shortly displayed while loading but vanishes under the OSM map.
gizmo21 is offline   Reply With Quote
Old 12/03/2012, 11:04 AM   #1137 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
Quote:
Originally Posted by michel_ng View Post
Works nice, but has a little bug i think. I get blue screen on penultimate zoom stage with OSM activated
Fixed, thank you for bugreport!
Google max zoom is 20, OSM only 18... I made a restriction when OSM is activated.
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Old 12/05/2012, 05:05 AM   #1138 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
Hi, I changed the zoom functions to be more flexible, then it allowed me to add an easy user-acceptable way how to restrict the zoom level. Each map type has a different zoom ranges, I defined them and the app checks the actual zoom level. Then it disables the zoomIN or zoomOUT buttons. Look at screenshots.

Second, I completely changed the OSM layer background, now it is defined as regular map type, not as overlay. It means it loads only OSM tiles and not OSM tiles + blank tiles to backround - decreased data transfer.

About the traffic on OSM... looks like it is not allowed from Google side.
Attached Images
File Type: png maxZoom.PNG (41.5 KB, 10 views) Email Attachment
File Type: png minZoom.PNG (54.2 KB, 9 views) Email Attachment
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development

Last edited by 72ka; 12/05/2012 at 05:16 AM.
72ka is offline   Reply With Quote
Liked by jcmarcos likes this.
Thanked By: jcmarcos
Old 12/05/2012, 06:56 AM   #1139 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
When I was looking for OSM implementation, I found some other map sources available. I can get e.g. Nokia OVI Maps, Free Slovakia maps, OSM bicycle maps, MyTopo, etc..

And many other map sources are available. Iīm thinking about some custom map types feature, where user could select what map sources to add to the layers pop-up menu.
Attached Images
File Type: png MyTopoMaps.PNG (383.3 KB, 15 views) Email Attachment
File Type: png freemapSlovakia.PNG (331.0 KB, 13 views) Email Attachment
File Type: png OSMcyclemaps.PNG (96.6 KB, 12 views) Email Attachment
File Type: png nokiaMaps.PNG (95.1 KB, 14 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 and T-Pad like this.
Thanked By: jcmarcos
Old 12/05/2012, 08:05 AM   #1140 (permalink)
Homebrew Developer
 
72ka's Avatar
 
Posts: 473
Hi, just making new small addition - to show the my location altitude from device GPS. Next addition could be an google elevation service and show the Google altitude for the same location for comparing. This could be a begining of elevation service implementation, I want to add a elevation graph for route.... Iīll see, it needs a lot of free time...
Attached Images
File Type: png GPSaltitude.PNG (48.9 KB, 13 views) Email Attachment
__________________
HP Pre3, the Google Maps, wInNeR, Gas&Oil, HERE maps for webOS development
72ka is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0