Anyone else having problems with this component today (in the simulator)??? All of a sudden now I can't get it to show a map, even from a virgin download of the component + test app! ARGH!
NSString *script =
[NSString stringWithFormat:
@"var newCenterLatLng = map.fromContainerPixelToLatLng(newCenterPixel);"
"map.setCenter(new GLatLng(%lf, %lf));",
latlng.lat, latlng.lng];
NSString *script =
[NSString stringWithFormat:
@"var newCenter;"
"if(newCenter==null || newCenter == 'undefined') { "
"newCenter = new GLatLng(%lf, %lf); "
"}"
"map.setCenter(newCenter, 17);",
latlng.lat, latlng.lng];
Dear Mr Gammal,
Thanks a lot for such a wonderful post and sharing it. Looking at this code, I understand that in your website you have written a kind of plugin which fetches map from Google maps and modfies their javascript to somewhat and delivers to the client. i would be much grateful if you can share that part of the server side code, so that we can use this webview control freely. If not, at least some hints how to do those things will be much helpful if you can share with us.
regards
ch
yes it is, they are called markers in the google maps slang. i am sure you will figure out how, the google maps api documentation is one of the best api documentations i ever saw. they have plenty of examples too.
No we are not talking about the google map webpage here. The whole thread has been talking about the google map component, a library that you embed into your UIView. And I want to know if that component supports adding pin/marker.
A component that you can add to your iPhone application to access all basic features of Google Maps (similar to Android's MapView). It uses a UIWebView in the background to load the HTML/Javascript version of Google Maps, and offers a set of Objective-C methods that mimic a subset of the original Javascript methods for controlling the map.
Your account does not allow for PM. Do you have an email contact?
9.1 Free, Public Accessibility to Your Maps API Implementation. Your Maps API Implementation must be generally accessible to users without charge. You may require users to log in to your Maps API Implementation if you do not require users to pay a fee. Unless you have entered into a separate written agreement with Google or obtained Google's written permission, your Maps API Implementation must not:
(a) require a fee-based subscription or other fee-based restricted access; or
(b) operate only behind a firewall or only on an internal network (except during the development and testing phase).
10.8 use the Static Maps API other than in an implementation in a web browser;
You guys are aware that you can't use Google Maps in an application that you charge for?
In fact, even using it in a Mobile application at all is dubious. See http://code.google.com/apis/maps/terms.html
Google HAS acted on this and can do at any time.
Our mapNinja product provides out-of-box connectivity to Microsoft Virtual Earth maps, several open-source map providers, and our in-house map server. Depending on requirements there are a lot of cost effective ways to enable a killer maps experience within free or paid apps. It pains me to see so much time and effort being spent by people all trying to solve the same problem (nice in-app maps on the iphone) which is we we developed the mapNinja iPhone maps SDK.
Everyone is trying to solve the dame problem because non one refuse to share their work. And that includes you because mapninja requires you to show ads.
You may want to tone down the commercial advertising, which is against forum rules, or you may find yourself getting reported.For clarification: the mapNinja product is available for free, which requires ad display. Alternatively, it is available for a one-time fee, which does not require ad display. The price is a fraction of what it costs to develop and test such a component from scratch; we invested heavily in making a high quality and well documented SDK. The mapNinja has been used by tens of thousands of end customers in our own apps, which provides a level of maturity and stability within the product that is not achievable any other way.