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.
Related
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!
Classic My Maps on maps.google.com will no longer be available.
Now we must use new maps. I would like to embed them to the website, without iframe that google suggests.
Before this change I used simple kml layer:
var kmlLayer = new google.maps.KmlLayer('https://maps.google.com/maps/ms?ie=UTF8&t=m&authuser=0&msa=0&output=kml&msid=212840568890456843825.0004c1fba0c8371a81c2b');";
kmlLayer.setMap(gMap);
But during the automatic update of my maps it was broken, if I use the same link - I got empty icons. Here is the new map (converted by google), can I load it using API V3 as I did before?
https://www.google.com/maps/d/viewer?mid=zhJ_pzBRPGN8.kCI6hT4Kq0Ao
In other words:
I want to create maps here: https://www.google.com/maps/d/
And to embed them using API v3, but where can I get a link to the layer? Central coordinate, zoom level?
Change the KML Layer link to:
https://mapsengine.google.com/map/kml?mid=zhJ_pzBRPGN8.kCI6hT4Kq0Ao&lid=zhJ_pzBRPGN8.kZ0hfyeW-GtI
I grabbed this link from the "Share", "Download KML" URL on the Map that you linked to.
http://snag.gy/mHDah.jpg
Please look at the above picture.
I want to add a place to the map and export embed html widget to my web site.
But the problem is a place is not there. (Not body added that place to Google Map).
I want to mark that place with a red point in a embed map. (Please look at the below snapshot)
http://snag.gy/7DFm3.jpg
Please help me.
Maps Engine Lite (Beta) is a tool which allows you to design and save your own custom maps. In order to make use of it, you'll need to have a Google account and be logged in.
For example, have you tried to embed a newer Google map into a web
page? The reliable old "link" button is nowhere to be found!
A simple example is here
Those pins are called markers in the gmaps API.
This example does what you want: https://developers.google.com/maps/documentation/javascript/examples/marker-simple
You can use normal Google maps to find out the coordinates for your place by right-clicking on it and choosing "what's here" (works in chrome and safari at least).
i am placing some locations on google map. i need to set text next to marker on the map. is there a way to do it ? because i can not see any tools or option provided by google maps to do.
its not an application i am developing or coding. i am just saving locations on google map site.
Thanks
Look at the InfoBox from the utility libraries. There is an example in the documentation.
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