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.
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.
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
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 want to put a Google Maps map on our website.
I know that custom markers can be added to a map with Javascript, but I'd rather use Google's MyMaps service instead, because then my co-workers could edit the map without any programming knowledge.
You can add a custom My Map to websites with an embedded iframe. I'm using the Javascript API instead though, so that I can take advantage of the controls the API delivers (such as zoom through custom controls or changing the position on the map without touching the map itself).
Can I insert the map created and saved with My Maps as a layer in my JS API map?
You can use GGeoXml to add My Maps content to your API map.
In your My Map there's a "View in Google Earth" link, use the URL of that link as your GGeoXml URL.
The link generates an indirect "network link" reference to the data, so the map on your page will reflect the latest changes made to the My Map.
The downside is that there's a limit to how many markers you can place on one page of a My Map, and the "View in Google Earth" link only returns data for the current My Maps page.
Another strategy is to use GeometryControls in your own API map.
That involves a lot more coding effort on your side. It gives the same look and feel to your co-workers, so they still need no programming skills. The advantage is that it bypasses the My Maps limit to the number of markers that can be displayed at once.
Apparently you can embed the My Map you created in your website by using the Link To This Page functionality as described here.