google-maps

Programatically generate Google Maps markers (API v3)

Is it possible to programatically generate markers in Google? For example, I have a database of services and locations that I want to plot on a Google Map using PHP. Using the Maps API v3, I have created a map and plotted the services fine using markers and info windows, but what I really want to do is generate numbers (1,2,3,4... etc.)...

Why are Google Map markers showing up on Firefox by not on Chrome, Safari and Internet Explorer

Hiya All, I have a bit of strange problem on this page: http://www.bluprintliving.com/locations it seems that the markers i want to display are showing up in Firefox but not showing up on Chrome/Safari or IE. I am not sure really where to start debugging this issue as there are no javascript errors. The code is in two parts. The first...

Move google maps like twittervision

I would really like to have my google map app. move nicely around the markers like in twittervision.com This works OK when the distance is shorter but it just jumps off when the distance is greater Can anyone advice? ...

Find nearest transit station / stopover (bus, train etc) in google maps

Hey guys, I searched the web but for now I didn't found anything. Is it possible to find the nearest bus/train/ official stations of public transportation types? The 'nearest' is a seperate case ;=) but is it just possible to find them? this is that i'm searchin :) http://img443.imageshack.us/img443/7203/bild2zy.png They are tagged,...

How to convert latitude and longitude to world coordinates à la Google Maps

I am designing an application in C++ to view and edit a map of a fictional planet. How it works will be similar to Google Maps. I would like the user to be able to see their current position in latitude/longitude and world coordinates on the GUI. How can I convert a latitude and longitude values to "world coordinates" and back, as in Go...

How to populate a Google Maps Infowindow with AJAX content?

I want to populate the infowindow of my google maps markers with dynamic content. When the user clicks on a marker, an AJAX call should be triggered that fetches the corresponding content from the server. Meanwhile the infowindow should be opened and display a preloading message. Once the AJAX response arrives, it should replace the pr...

Centering an infowindow and infowindow margins - Google Maps

I'm running into a little problem with my infowindows: when a marker is close enough to the edge of the map that the map needs to pan to display the full infowindow, it does so but not enough to allow for a few pixels of space between the infowindow and the border of the map. Technically this works because content is made visible but it ...

Is it possible to use Bings street view with ASP.NET or Silverlight?

Hi I wont write web application, which will use street view of Bing(or Googles one if it can be used by ASP.NET or Silverlight). I found SDK for Bing map: http://www.microsoft.com/maps/isdk/silverlight/ But I need streets 3D view. Is it possible? Thanks. ...

Google Maps JS API v2 - Simple Multiple Marker Example

I'm fairly new to gmaps and Im using v2 because of the search function that I didnt find in v3. I've got an array of data that I want to loop through and put the markers on the map =) It seems really easy but I cant get it to work with v2 at all... Here is my what my array format and code looks like: function createMarkers(myLatLng,h...

Insert a Rails remote_function call in a google map infowindow

Hi, I'm trying to add a button to a googlemap infowindow so that when the user clicks on the button ajax is used to update a table of points outside the Map. I can open the infoWindow and add 2 button Save/Delete. Delete simply removes the marker and closes the infoWindow. Outside of the map I've successfully set up the Rails code to...

Using the Google Maps API on a site with user login (free)

I'm planning to make a web app where users can register for free. The app will contain a map, and I will most probably use OpenStreetMap data. The problem I've encountered with open libs as for example OpenLayers is that they're really slow and choppy when adding a lot of markers (which will be totally unacceptable). I think the renderin...

Degree location and mapkit

12.2N 109.2W Given this location, how would I find a point on a mkmapkit map? Does it have to be converted to lat/long? Little bit lost about this... ...

Reverse geocode using MKReverseGeocoder

Google Terms says I can only use reverse geocoding in conjunction with a google map. Is it ok if you first see the address in a uitableviewcell and then on a click see the location in a map (is this "in conjunction") ? Tried two other free services but they don't find all locations as it seems. Edit I see in an answer that I need to c...

Internet Explorer DoubleClick event with Google Maps API v2

So, I've run into a problem implementing a double click event in Google Maps. The code here works perfectly in Firefox, but in Internet Explorer the double click event rarely fires. I think that the problem is the one listed here: http://webbugtrack.blogspot.com/2008/01/bug-263-beware-of-doubleclick-in-ie.html basically that instead o...

Google Maps API V3 - need help with multiple markers

I'm pretty new to google maps so please be patient! My code was working fine untill i tried to add multiple markers, would really appreciate it if anyone could glance at it and see if i'm missing something... $(function() { var map_markers = [ [ [52.951946], [1.018124] ], [ [52.955311], [0.987997] ] ]; var options = { ...

Google maps api,Postgis,Multipolygon

Hello all PostGis WKT format of Multipolygon is: MULTIPOLYGON( ((20.229 39.409,20.2241 39.401,20.220 39.410,20.229 39.409)), ((20.209 39.407,20.223 39.400,20.211 39.402,20.209 39.4076)) ) Google Maps api v3 Polygon is: var triangleCoords = [ new google.maps.LatLng(25.774252, -80.190262), new google.maps.LatLng(18.466465, -66....

How to draw a path on a map using kml file?

Hi everyone. Can I parse kml file in order to display paths or points in android? Please could you help me with that? This is kml sample code which I would like to display in android google map: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"&gt; <Document> <name>Paths</name> <description>Examples of ...

Integrating Bing Maps tiles into Google Maps API

Hello, I currently managed to integrate OpenStreetMap into Google Maps API as it is described in this example. I wonder if I can also integrate Bing Maps tiles into Google Maps API. Is it possible? I could not find anything about that. Note: I do know about mapstraction but for now, I would like to stick to Google Maps API. Thanks in ...

zoom level with satellite imagery using google maps api v3

I am having a problem where if I fit bounds to a single marker there is often no satellite imagery. Is there a way I can set the map to the closest zoom level that still has satellite imagery? I am using Google Maps API V3. ...

What is the transformation math for creating a 45 deg angle drop shadow?

I read somewhere in Google's reference (and I can not find it again) that the shadow for the map marker should be at a 45 degree angle. What is the transformation to apply to the original image to achieve this? By eyeball it looks like it could be a horizontal shear of about 50% followed by a vertical compression to 50%, but I suspect it...