I am making application on Titanium for iOS and android.
This application uses Ti.Map.
I would like to add image on Ti.Map (google map or apple map)
I have confirmed googlemap API has this function like this below.
Adding a Custom Overlay
I have checked methods of Ti.Map and found createCircle or createPolygon....However these methods are not what I want.
Can I add image as overlay on Ti.Map of Titanium????
No. Ti.Map is very basic and only provides for polylines, polygon and marker additions, but not customizing of the view. If it were possible, it would be only on Android because that is Google Maps.
For your cause, I suggest you add a webview to your app, and use the JavaScript API of Google Maps to fix this. And within this webview add a full size Google Map, so you will not see any borders whatsoever. Should work perfectly fine!
Related
I have developed an iOS application that allows the user to drag a GMSOverlay subclass around in the Google Maps SDK. The overlay scales with the map as the user zooms in and out.
I want to replicate this in the browser but can't find examples of how to do it. Today I happened to see a web page where this was done.
Draggable overlay example
If anyone has any ideas about how this is achieved (generally speaking - I will research from there) it would be appreciated!
The Google Maps API zoom_changed event and getZoom() method will let you track changes in zoom, which can be used to scale DOM elements.
I'm looking for a way to use a custom UIView (not just a custom image) instead of default marker provided by Google Maps iOS SDK. Basically I need a possibility to place my UIView agains proper coordinates of the map, so not necessarily to use markers as they are, just any suitable solution. Any ideas?
There is not currently a way to do this. You can view the relevent feature request (and star it, to show interest) here: https://code.google.com/p/gmaps-api-issues/issues/detail?id=5203
The marker only shows an image. So it cannot take a CustomView. Moreover, if your custom view has some sort of button on it there is no way you can track the events from those button.
In simple words the map renders the markers as UIImage.
I'm using glass development kit, and I'm trying to show a pin.
Is there a google map sample ready to use ?to add my pin.
I saw I can use MapView if it was for an android app but with GDK it doesn't seems to work.
The position of the pin will be auto determinated by the network.
Static Maps is the thing you're looking for.
It allows you to embed a Google Maps image on your application.
You can easily download the content and apply it to an ImageView.
Google recently published a new Google Maps Lite wich can be directly used as a fragment. (sample code included)
Both method will allow you to drop pins on the map, without using the original MapView.
Is posible to add a custom layers to the new Google Maps SDK for iOS?
*Custom layers in Tile images or in KML format.
In the documentation I see nothing about layers.
No there is not in this initial version. There is some hope though as the similar Android API has one.
I can only suggest raising a feature request
I want to make Custom Map based on Google maps APIs I am using this code to get the Bitmap image
http://maps.googleapis.com/maps/api/staticmap?zoom=18&maptype=hybrid&size=560x480&markers=loc:26.177001,32.736675&sensor=false
Now I want to scroll the map, How can I do that. in other words I want algorithm to link between coordinates and gotten image size and map zoom
Thanks a lot
You are using Static google maps api. That's mean you will get just a print of the map as an image. This is really useful when you want to show just a place in the map without download the javascript lib.
If you want use the map zoom, scrool and other things you have to use the javascript google maps api