Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Show marker in Google Maps without web connection

Show marker in Google Maps without web connection

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Show marker in Google Maps without web connection

Postby hafi » Thu Jan 27, 2011 11:11 am

Hello,

I have searched hours, but I couldn´t find anything useful.

I have an app, where if the user have no internet connection, the current location is shown on Google Maps using:

geo:lat,long?z=18

This code shows the area of the location, but no marker. If I have internet connection the following snippet works fine:

geo:lat,long?z=18(NameOfMarker)

But how can I set a marker without internet connection?
Currently I am using:
Code: Select all
String geoUriString = "geo:"+ my.getLocation().getLatitude() + ","
                              + my.getLocation().getLongitude()+"?z=18";
                Uri geoUri = Uri.parse(geoUriString);

                Intent mapCall = new Intent(Intent.ACTION_VIEW, geoUri);
                mapCall.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                startActivity(mapCall);



Thanks for help.
hafi
Freshman
Freshman
 
Posts: 2
Joined: Thu Jan 27, 2011 10:37 am

Top

Re: Show marker in Google Maps without web connection

Postby JoxTraex » Thu Jan 27, 2011 8:42 pm

From what I know you won't be able to see any area on the map, if you do this. However; what you are trying to do is possible, just not practical. It needs the internet in order to draw the map since it downloads data from the google servers.

Ideally, I would just create an activity that extends the MapActivity class, so that I could have direct control over the map. From what I know even without an internet connection when extending that class you can still mark a point on a map using an overlay.

I hope this helps.


--

PS: If I find something that could help, I'll post it!
JoxTraex
Developer
Developer
 
Posts: 25
Joined: Wed Jan 26, 2011 12:29 am

Re: Show marker in Google Maps without web connection

Postby hafi » Fri Jan 28, 2011 10:10 am

I am exactly doing that, if I have web connection.

But what i mean is, that if I have no web connection, the google maps offline service is better than my mapactivity.

Showing of the area works fine, because I use the Maps app on my phone.

Thanks.
hafi
Freshman
Freshman
 
Posts: 2
Joined: Thu Jan 27, 2011 10:37 am

Re: Show marker in Google Maps without web connection

Postby JoxTraex » Sat Jan 29, 2011 2:31 am

Oh I see what you mean, you want to have the standard maps application still display a map within the fixed area that is defined from the last snapshot that was taken. One thing to keep in mind is that like I mentioned, is the area is fixed. So, depending on what you're trying to look for if its not within the area defined you won't see it. As for marking a point on this, via no internet, I'll have a look and see what I find.
JoxTraex
Developer
Developer
 
Posts: 25
Joined: Wed Jan 26, 2011 12:29 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests