I use the following function to add a crosshair to my Google Map. It works great for horizontal resizing. I can not figure out how to make it work for vertical. After resizing the map it requires the user to either zoom in or out 1 layer, upon which the crosshair snaps to center.
var crosshairsSize=17;
GMap2.prototype.addCrosshairs=f...
I have a custom info window over a google map, sometimes these info windows contain an image. When they do, the info window scales down over the marker it is positioned over as soon as the image has finished loading.
So the images take longer to load and the div's position has already been calculated by the time the image is finished lo...
Hi,
I would like to insert a link into the Google Maps InfoWindow to show more information about the point the user has clicked on in my rails app. My current code:
$.getJSON("/places", function(json) {
if (json.length > 0) {
for (i=0; i<json.length; i++) {
var place = json[i];
addLocation(place);
}
}
});
func...
Hi all,
I'm writing a Google Maps app that requests data from the server using jQuery's $.ajax() to send the request to my ASP.Net MVC Contoller. This control expects a List for the amenity types. What should the querystring look like for this?
I've tried
http://localhost:9090/mapamenities?amenityTypes=1,5
http://localhost:9090/map...
Hi guys,
I'm having some problems with Google Maps v3. I have an event listener on "bounds_change" that adds all accommodations(markers) within the active bounds. When i move the map slightly, the same markers are added again because they are located in the bounds. So every time I move the map, duplicate markers are added.
How can I ma...
I'm using the GMarkerManager to handle zoom levels on an embedded map, it's working fine in Firefox and Chrome but will not load in Safari 5 OSX. I'm a bit stumped as it's not giving any errors in the webkit developer tools.
The page is here http://www.propertyglobalsearch.com/map-of-property-for-sale-worldwide.html
EDIT: I tell a lie,...
Hi all,
My source gave me the following lat and long codes from Amsterdam. But I can't get them working with Google Maps. Is there some logic behind it, or some kind of algorithm to convert them?
5,237,300,539,279,090 | 489,290,714,263,916
Should be something like this:
52.378268, 4.888859
How can one tell where the dots should be...
I have fairly large map overlay that I am displaying over the google maps data but would still like to see the country/state/province lines through my overlay (so the lines would essentially be on top of my overlay).
As I understand, these lines are simply polygons drawn over the maps. Is there any way to access these? If so, how do I...
Ok, simple question but is it possible to call an external javascript function within a google maps listener?
GEvent.addListener(map,"click", function(overlay, latlng) {
testfunction(latlng);
});
testfunction doesn't run, so is there a particular way i need to go about this? I'm new to google maps and javascript.
...
Hi
Why is focus not set to noteTitle?
I am using google maps API V3.
The getNoteForm() returns a input field "noteTitle".
The $("#noteTitle").focus() works fine when executed in firebug.
I call this function when clicking on the map:
function setNewNoteInfowindow(latlng) {
if (geocoder) {
geocoder.geocode({'latLng': latlng}...
Hello, I have been having some trouble finding a good way to output just the street name and city as text (Infinite Loop, Cupertino shown here) that can be displayed in my iPhone app. This needs to be able to dynamically change as you change streets and city. I don't have the slightest idea of how to do this, I hope someone can help. I h...
Hi everyone,
I'm trying to integrate Google Earth into Google Maps, and I saw it was possible in v2.
But I can't find any doc about how to do so with v3...
Any idea?
Thanks!
...
I'm trying to do an openURL to launch the google maps address:
http://maps.google.com/maps?q=cars&ll=40.088745,-82.992491&sll=40.088745,-82.992491&radius=20&z=16
In iOS4 I see my local results as expected. However, when I try the same link on a 3.x device it shows me the entire world with results in Europe and North ...
Hi all,
I am trying to access google maps' forward geocoding service from my iphone app.
When i try to make an NSURL from a string with a pipe in it I just get a nil pointer.
NSURL *searchURL = [NSURL URLWithString:@"http://maps.google.com/maps/api/geocode/json?address=6th+and+pine&bounds=37.331689,-122.030731|37.331689,-122.030731&...
I know the browser shares my IP address and details of nearby wireless networks to determine my location, but what sort of info does it know about nearby wifi networks?
For example, where I live are no public wireless networks, and from my home I can see about 5 private networks, yet my location is determined within 20 meters. With ther...
I want to have draggable markers (already done), but I need to be able to turn off draggability in certain conditions.
Marker is created like this;
var Marker = new GMarker(center,{draggable:true});
...which works fine. But I can't figure out how to make it undraggable.
...
Hi,
I am building jsf component for map servers and I was wondering if it is possible to use gdata maps api to update or retrieve new map which isn' t user map or i have to create Javascript binding for JSF.
Regards
Jan
...
I have a two column list consisting of a US zipcode and a count (number of customers in this case). I want to put this data onto a map. Would Google maps API be a good fit for this?
It seems like this would be a common enough type of problem to already have an existing (preferably Java based) solution without having to re-invent the w...
Hi All. I tried with the following but it doesn't work
var txtlat=document.getElementById('TextBox1').value=GMap1.getCenter().lat();
var txtlong=document.getElementById('TextBox2').value=GMap1.getCenter().lng();
It gives a JavaScript error as "Object doesn't support this property or method".
How can i do this????
I really need help...
I am working in Flash Builder 4 with Google Map's ActionScript API. I have created a map, loaded some custom markers onto it and added some MouseEvent listeners to each marker.
The trouble comes when I load an InfoWindow panel. I want to dynamically set the htmlContent based off of information stored in a database. The trouble is tha...