Skip to first unread message

allinonemovie

unread,
Feb 17, 2015, 12:39:01 PM2/17/15
to mitappinv...@googlegroups.com
Anyone has an idea how i can make a "live-map" in appinventor? I want to show the user´s position on a constantly updating map. If it´s possible i want to add some markers on the map, like you can do with google maps. I found a tutorial with the activity starter, but i don´t want to switch between 2 apps. 

Sorry for my bad english ;)

Taifun

unread,
Feb 17, 2015, 12:51:31 PM2/17/15
to mitappinv...@googlegroups.com
you could adjust this example to your needs

SteveJG

unread,
Feb 17, 2015, 1:29:38 PM2/17/15
to mitappinv...@googlegroups.com
Here is a solution, it is very simple if you need 'pins.
.  It uses the WebViewer ...with a Static Google Map.   https://groups.google.com/forum/#!category-topic/mitappinventortest/Qhhw9Rs1Tcg   There is no need to use a Fusion Table or javascript to get a reasonable solution; however you can do your project that way too.  To the technique mentioned, you use the LocationSensor to add a pin using the  latitude and longitude from the sensor and it will display the users current location.

Regards,
Steve


allinonemovie

unread,
Feb 20, 2015, 7:31:34 AM2/20/15
to mitappinv...@googlegroups.com
Thank you. I didn't know about the static map function. Is it possible to add the CurrentPosition-Marker without reloading? I think you can make it with a "ball". But I didn't work with the ball already. Do you know, if it's exactly enough?

allinonemovie

unread,
Feb 20, 2015, 7:32:09 AM2/20/15
to mitappinv...@googlegroups.com

SteveJG

unread,
Feb 20, 2015, 8:15:58 AM2/20/15
to mitappinv...@googlegroups.com
The "current position marker"  can only be updated by reloading.  A static map is 'static,; not 'dynamic'.    You can make you current location icon with a 'pin' of a different color or you can change the label    The 'secret'  is here:   color:green%7Clabel:G%7C    color:green changes thecolor ;  %7Clabel:G%7C  changes the label 'caption' which in this case is the letter "G".  https://developers.google.com/maps/documentation/staticmaps/#MarkerStyles
 

You can refresh the current location position by placing your code in a Clock.Timer event handler and refreshing once a minute (set the interval to 60000 ms).  

Did this help?

Regards,
Steve






Reply all
Reply to author
Forward
0 new messages