How do I get Google Maps to stay this way:
I don't want it to show the marker point.
My solution was to use setTimeInterval with gmap.setCenter by step 1 sec to make a setCenter works. When the map is in full-screen the setCenter function works. But I think this solution is not good for my app.
Another detail is that the map is set so that it only appears when you click an option. So the map is hidden in another div.
I also tried to idle the event of gmap, but it doesn't work.
You probably don't need help anymore, but I give you my answer for feature the same question.
Google Maps API v3 is designed for PC browser, which has large memory and better network (than smartphone), so it is not suitable for PhoneGap.
Google provides Google Maps Android API v2 and Google Maps SDK for iOS, which are able to load maps faster, but you need to them with Java and Objective-C.
phonegap-googlemaps-plugin helps you to implement those Google Maps into your PhoneGap/Apache Cordova easily.
So if you try to embed Google Maps into your app next time, try it.
phonegap-googlemaps-plugin
Related
Google Maps give opportunity to user to look on
Earth from space.
But Google Maps Javascript API 'Satellite' version allows to you zoom only to
this version
How can I get view from Google Maps like at first screenshot? Thank you for help.
You are talking about loading a web-gl rendered globe instead of imagery map tiles. This functionality has not been released to the javascript API. Google has started releasing some of their web gl functionality such as being able to toggle 3d mode in bigger cities but the "earth global view" web-gl functionality are lacking.
I would like to create a route between my current location and clicked marker's location in Google Maps Web, however I couldn't find such a thing is there any example of it or we can only do it in Google Maps Android or iOS.
PS: I was able to handle it in HereMaps Last year, it is quite funny if Google Maps doesn't have that feature.
I hope this this Google Maps tutorial will help
I've been programming with Google Maps API since 3.6. I have been using google.maps.GroundOverlay. So what is the difference between this and USGSOverlay?
The core difference is ,that GroundOverlay is a part of Google Maps V3 API, but USGSOverlay is not.USGSOverlay is just illustrutation of OverlayView's implemenation, which you need add to your code , whenever you want to use it,but in GroundOverlay's case ,it is not neccessary. It is coming with Google Maps API's script. The other difference is, you can specify opacity of overlay in GroundOverlay's case, but you can't do that thing by USGSOverlay(you need to customize the code a little bit to achieve this).
I want to make a website that displays my map, has panning, zooming and other features.
The google API seems to be the right thing for me. Just one question : Can i use the google javascript api with my own map images on my own server. I dont want to use the actual google maps, just its capability to display zoomable/scrollable maps in a browser
Technically this may be possible using the Overlays section (Ground overlays allow image overlays on the map) of the API and hooking half a dozen events to handle the redrawing at different zoom levels, tiling, hiding the real information about whatever location Google Maps thinks it is showing, etc.
But it is definitely not designed for such purposes and I'm not sure if it would be legal to use it in that way, would have to read the license.
There are other alternatives out there that would be able to achieve this functionality without the level of work needed to get Google Maps to cooperate I believe.
No, I don’t think so.
You may also want to look at OpenStreetMap. I have seen custom map-images being used with its interface.
I think you'll find that the Google maps interactivity code is geared towards working with Google map servers for the underlying map. However, you could put your own layers over their maps and then serve up your own content so long as it used the same mapping co-ordinates.
I have done google map in UIWebView and it works perfectly with routing stuff and all. But now i want to load some other map into the WebView and get all the features that i get from google maps. How can i do it?
For eg: I want to load this one to the UIWebView. http://stage.discoveritalia.it/conbipel/ .This is an italian map. I want to use it in the same way as google maps works in an iphone app. Plz help me.
Since you are using normal web-based Google Maps in a UIWebView and not UIMapKit you approach this as any other Google Maps implementation using JavaScript.
The way this is done is by defining a custom map tile layer. See the Google Maps API documentation for custom tiles for more information.
Note that beside the actual programming, you need to have (and the rights to use) the actual map tiles as well.