I'm trying to load a number of predefined markers on a map. I also want to allow clicking to create a new marker. I want the markers to be connected via polylines and I'm trying to get the polylines to redraw after a marker is dragged and dropped.
The following script seems to work for the last stop that is preloaded, as well as all n...
I did find a solution for this on Google map api page, and I made the following changes as mentioned in it.
1.Use Google Maps API for Flash version 1.9a or later.
2.Add the following to your Flash application before the map is instantiated: Security.allowInsecureDomain("maps.googleapis.com");
Ref:http://code.google.com/apis/maps/faq....
I would like to do a very simple task: add some markers in a Google Map using a list of addresses from an array.
I have been thinking about generating the Google Maps JavaScript API code using ruby (printf) but this does not seem like a very clean and beautiful solution...
I have read about YM4R for Ruby on Rails... my project is prett...
var mymarkers= []; //array
function createMarker(point,html,ref){
var marker = new GMarker(point);
mymarkers[ref] = marker;
GEvent.addListener(newmarker,'click',function(){newmarker.openInfoWindowHtml(html);});
map.addOverlay(newmarker);
}
This function works well, it adds a marker to the map no problem, but w...
The default panTo only pans to the edge of the screen.
I like setCenter but would like to pan to that point. Any ideas welcome
map.setCenter(mymarker.getPoint());
GEvent.trigger(mymarker,"click"); //open the info window
...
http://www.google.com/mobile/maps/
Using this on phones without gps, the locatiosn can be obtained as well.
I am currently using the html5 geocoder/gear for obtaining locations. However this only works for iphone and android. BUt how does google map get the information from phones without this capbility?
...
hi ..
iam trying to get the country name using the Address Component Types available from gmaps V3.
i dont know how i can get it the right way..
http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingAddressTypes
iam trying to alert the country name liks here :
alert(results[1].address_component[country]);...
Is it possible to embed a CSS/HTML DOM element inside a Google map that can:
Be dragged around independently of the map;
'Stick' to the map if the map itself is moved around;
Overflow hidden beyond the bounds of the map.
Here's a screenshot to illustrate..
...
Are tiles from Openstreetmap (OSM) compatible with tiles of Google Maps (satellite view)?
By compatible I mean - is it possible to use the code/logic that is written to read Openstreetmaps tiles to load tiles from Google maps ?
Can someone point to good resources that can explain more on this topic.
Thanks.
...
1.Is it possible to NOT use Google Maps in Android?
2. Can we use Navteq maps?
3. What will it take to write such an application?
4. Do we have to come up with our own version of MapView?
Pointers and links that can answer these questions and help me get started on 4. are welcome.
Thanks.
...
I'm drawing a series of markers on a map (using v3 of the maps api).
In v2, I had the following code:
bounds = new GLatLngBounds();
... loop thru and put markers on map ...
bounds.extend(point);
... end looping
map.setCenter(bounds.getCenter());
var level = map.getBoundsZoomLevel(bounds);
if ( level == 1 )
level = ...
Hey everyone I am working on an applications and I am using the built in zoom controls. When using a specific size I can see the zoom controls. When using fill_parent the zoom controls are not visible. How it is setup is a mapview inside of a frame layout(also using fill parent for the height and width but with an offset down the screen....
I am working with the google maps API and whenever I return the variable to the initialize function from the codeLatLng function it claims undefined. If I print the variable from the codeLatLng it shows up fine.
var geocoder;
function initialize() {
geocoder = new google.maps.Geocoder();
var latlng = new google.maps.LatLng(...
I am trying to draw a geodesic polyline with Google Maps JavaScript API from two address points.
var polyOptions = {geodesic:true};
var polyline = new GPolyline([
new GLatLng(),
new GLatLng()
], "#f36c25", 5, 0.8, polyOptions
);
map.addOverlay(polyline);
if (GBrowserIsCompatible()) {
map.addOverlay(polyline);
}
Could so...
hi all,
i have been struggling to find out all the geo-locations within the boundries of a polygon. If anyone knows how to solve this id be grateful.
thank you.
...
hi,
i am developing an android application using google maps data.I can access google maps in emulator but when i try the same in my application the google maps is not opening .What is the problem?Help
...
hi all,
this is the javascript.
var url = "http://google.com/gmap.jsp?uid="+userid+"&lat="+lat;
GDownloadUrl(url,function(doc){});
how to change from get to post?
any idea?
thanks
...
When I create Gmap she needed to establish the center and zoom
Once we've created a map via the GMap2
constructor, we need to initialize it.
This initialization is accomplished
with use of the map's setCenter ()
method. The setCenter () method
requires a GLatLng coordinate and a
zoom level and this method must be
sent ...
Hey everyone.
I'm currently developing an app which uses tabs and google map. What I want to do is to get the gps positions, say 3, and store them in sql db (which I'm already doing) and then display them on the map. I already created canvas, added to overlay but those points disappear when I'm changing tabs so I thought if there is a w...
A scroll follow effect is when a part of the web design is always visible, even when the window is scrolled.
There are animated and static versions of this.
The animated is ok http://robertomartinez.info/cobra/index.html
But I prefer the fixed version, however I have some bugs:
http://robertomartinez.info/cobra/index_fixed.html
-In F...