Adding Makers To Google Maps V3 When No Data Connection - android

I am in a situation where, even if there are no maps being displayed due to no connection (the screen is just blank with not features available), I still want to add the markers and polylines onto the Google Map.
Is this possible?
It seems that if there is no data and no maps have been loaded that nothing is displayed?
THANKS IN ADVANCE

This issue is described here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=5017
There seems to be a workaround of not using ACCESS_NETWORK_STATE.
They will probably fix it completly in the next release.

Related

Google maps crash and memory use

Google maps native plugin ionic 3
Sometimes during normal google maps operations like adding markers in loop or clearing map, there is an application crash. There is no patter for the crash. And the error message is as one bellow:
java.lang.NegativeArraySizeException: -1
at plugin.google.maps.PluginMarker$3.run(PluginMarker.java:149)
Could someone tell me what does it mean, cause I think that it is connected with google maps native plugin error.
Sometimes it breaks during normal map use, sometimes in other part of application when map is forced to clear and move camera.
This error only happens on page where I have to do a lot of work on map.
In other pages there is no problem. When I want to make this error again it does not come up.
My second problem is that when user plays with map a lot the size of data in memory grows up. What might be the way to clear it? I know that when I use
this.map.setVisible(false);
it saves map state in the background and only hides map.
I have already found a solution to first problem. I came up with idea that markerCluster is the best solution, cause app crash might have been connected with markers overloading map during adding markers. MarkerCluster only loads few markers which are referencing others (Google Maps Native plugin).

Google Map Not Drawing Tiles - Draws Layers

I have a very strange issue that has appeared with the Google Maps feature in my app.
The app available for download on the Play store will draw everything just fine. Rebuilding and installing the app fresh is where the problem is seen.
The odd thing is; the maps view draws, location pins are shown exactly as expected, the "Google" watermark is shown, my custom layers are showing correctly, and pinch and zoom works as expected (I can tell because I can move the layers and scale them).
Tiles are not drawing. I'm not seeing any road data, any terrain data, or any actual maps data. I'll attach screenshots.
Edit:
Okay, I am at a complete loss. I'm actually an iOS developer, so grasping this problem is a big challenge. I'm reading that there are Google maps v1, v2, and v3 (SDK iterations??). I would assume the most current version is v3. I created a new project, added a new API key, and got it to draw a basic map. The API version appears to be 11.0.4 in that test project. The important project I'm having problems with is pretty old. I inherited it. I don't know which version it's using (v1, v2, or v3). The dependency is version 8.4.0. The way the API key is set in the problem project is completely different than the new test project.
I do not know what I can do at this point. Can I simply change the way the API key is set in the old one? Is the old one even going to work at all, or will I have to re-implement the maps feature? Is there any way I can easily fix the current feature? Hoping for a miracle.
It looks like you have a problem with your Google API key. You can get more information here:
https://stackoverflow.com/a/8989312/1146533

Implementing Google Places API with updated Google maps v2

Over the past few days, I am trying to find a step - by - step tutorial to implement google places with the updated version of google maps (in eclipse for Android) with no success.
In the old tutorials I find , the map doesn't appear, because it is not updated in the v2.
Can anyone suggest a way to proceed? I feel lost with all the scattered information I get, and I don't have the experience to change the old examples by myself.
I want to make a simple app, that finds my current location and displays the cafes and restaurants, within 3Km distance. At this point I have tha map showing my location, and I need a tutorial to guide me into implementing Google Places from scratch.
Please help!
I'm actually making an app quite similar to yours! I haven't updated to v2 yet but from what I can tell, the only major difference in implementation is the use of a MapFragment as opposed to a MapActivity.
So you have the map up, yes? Then you should be able to make calls to Google Places the same way you did with the v1 Maps (since they're separate components and don't depend on each other). If Places is what's giving you trouble, I suggest following this tutorial: http://ddewaele.blogspot.com/2011/05/introducing-google-places-api.html. It's pretty good and only needs a couple of tweaks to get things up and running.
If you're still having trouble, post back and I might be able to help you out with some code.
i found this post helpful,i hope you will find it too,
http://mobile.tutsplus.com/tutorials/android/android-sdk-working-with-google-maps-map-setup/

How do take an existing map and overlay it into google maps on the android platform?

I am working on making a interactive campus map. I am wanting to take an image (below) and overlay it onto Google maps and then add interactive points of interests. I am not seeing how to add or merge the image to the map. Can this be done? Are there any examples out there I missed?
If you want to replace the google map background.
From my experience, I could say no. It can't be done
But if you want to make it like transparent you can put Your map on top of google map and just set transparent.
However, somebody already been done this before. you might got some idea if you see this
http://www.maplib.net/
http://lifehacker.com/213627/embed-any-image-into-a-google-map
Google Maps Developer Documentation

Android Google Maps Maritime charts layers

I'm looking at displaying a map within my Android app that presents maritime charts, and also needs to work offline as there will be no network connectivity of any type available. I suspect that I will get my maritime charts supplied as a series of bitmap files with LAT/LON references of the area clipped.
My question is this - how do I go about implementing this ? I guess I have to add them as a layer somehow, can someone show me how to do this ?
Also, as the device will be offline, will there be a problem trying to use Google maps even if all the content is held locally, will the API just "not work" until it has connectivity ?
Thanks in advance.
As this just earned Tumbleweed, I thought I should update it.
I tried really hard to use the Maps API offline, with my bitmap as a layer - it didn't work out. The API is too reliant on the interweb and just seems to timeout when trying just about anything.
Simple solution, I have just extended the ImageView class to display my bitmap chart & overlays.

Categories

Resources