google-maps

whats the coding for displaying many locations in google map using latitude and logitude value

I used this code but its not working. function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(10.35,79.4167), 13); var marker = new GMarker(new GLatLng(10.35,79.4167)); map.setCenter(new GLatLng(8.7167,77.483), 14); var marker = ne...

Google Maps API - Drop a new pin

I'd like users to be able to drop a pin on my custom Google Maps integration, similar to the ability to do this in the "My Maps" section on Google. I can't find anything about allowing a user to drop new pins through the API though. Can anyone provide some info or point me to the right direction? Thanks! ...

Google Maps API sometimes not returning PostalCode within AddressDetails

I created a function to take location input, pass it to Google Maps Javascript API V2, and return a latitude/longitude/normalized address that I'll have to split into different fields in a database (i.e. city, state, postal). I'm requiring at least a level 5/post code accuracy for the input so that the returned data from Google will alw...

load google maps in javascript file

I want to load google maps dynamically so I only load them when needed but I keep getting the error google is not defined here is my code $(document).ready(function(){ if($('.geotags').length > 0){ $("head").append('<script type="text/javascript" src="http://www.google.com/jsapi?key=keytogooglemapsapi"&gt;&lt;/script&gt;'); ...

javascript + google mashups, remove drawn objects

hi, here is an example of drawing polygons on google mashups. Can anyone show how to do the following: 1) Only let user only draw one object. 2) If user has drawn the object, and then presses again on some other object button then the previous object on google mashup is deleted. So that there is only one object always on google mashup.....

How do I get local business results using google maps API

Is there any google/Yahoo/Bing API which gives local business results based on a ZIP/GeoCode of a location? If yes, please let me know. If Google Maps has such service, please let me know what where do I get a reference regarding that? ...

using Google Maps API and J2ME?

Using Eclipse, how can I integrate my J2ME app with Google Maps API? Can you recommend any articles or tutorials that are helpful, or helped you before? ...

GEvent over kml

if I catch polygons in a kml with geoXml = new GGeoXml("http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml"); how I can applicate listerners (onclick,overmouse,etc) over this polygons? ...

Color a Google Map, Android

I am working on an android app that uses google maps. now I would like to know whether there is a possibility to color a google map e.g. have a different color for roads and other shapes. E.g have something like this http://odopod.com/contact/ ...

Store geocode info from google maps into mysql

I am pulling an address from a database and plotting it in a map. However, if the marker is dragged to a new location, I need the NEW geocode at "dragend" to be stored in the database. any ideas on the simplest way to accomplish this? ...

override google.maps.Marker.prototype.setPosition return error

catch google.maps.Marker.prototype.setPosition calls (function(){ var setPos = google.maps.Marker.prototype.setPosition; google.maps.Marker.prototype.setPosition = function(latLng){ console.log(["setPos", latLng]); setPos(latLng); }; })(); return error this.set is not a function http://maps.gstatic.com/intl/cs_ALL/mapfiles/ap...

Google Maps v3 API: KML layer messing with click, mouse events

Help! I'm working on a project where, after creating some nice code for creating polygons and attaching mouse events to them, the addition of KML layers (mainly placemarkers) results in uncooperative behaviour between the placeholders of the KML layer and the generated polygons. If I create the polygons first and set the KML file after...

How to Create google map polyline from gps points?

I have a collection of gps points in the following format: S 25°35', W 48°10' I cannot find a way to pass it to google maps api (v2) , so that I can draw a polyline. ...

Get latitude and longitude based on location name [google maps api]

I have a textbox in my page which gets a location name and button with text getLat&Long. Now on clicking my button i have to show an alert of latitiude and longitude of the location in the textbox. Any suugestion. ...

is it legal to show google map with directions in iphone application in a UIWebView ??

is it legal to show google map with directions in iphone application in a UIWebView ?? i mean to say that can apple allow this ? can apple approve an application which shows google map with directions, inside UIWebView (Not with UIMapKit). ...

Creating street block overlays from google map data or other map APIs

My question is the following: How can I grab 'blocks' in a city for use in a game? (And then display them shaded in a certain color?) My general idea is to use real blocks of your city in a game, that you can own/sell. I want to display the areas you own as polygon overlays in google maps. Are google maps the way forward, or are other...

Google maps - limit panning between longitudes

Hi, I"m trying to set limits to the map view so the user won't be able to pan it cyclic. (when panning to the right, instead of the map will cycle, I want it to stop). is it possible? Ori ...

Google Maps Help - placing city name above markers

I'm using Google Maps v3. I have a lot of markers on my map, so many that it covers the city name from being visible on the underlining map. Is it possible, and how, to have the city name displayed above the markers? For example, currently, the layers look like this. Layer 1 - Map Markers (on top of map) Layer 0 - Google Map (with ci...

Google maps - Postcode plotting

I'm struggling to find any up to date relevant information on how to achieve this effect in google maps. I was hoping someone knows more than me on the subject and could point me in the correct direction.. The problem: I need to plot X amount of pins on a map via a postcode. The second step is to enter my own postcode and product a...

how do i find near by locations to a given location using google map api

would like to find all the nearby places for a given place or address. Is there any google map api ? or we need to follow a sequence of steps like Find the lat long of the place. Do some processing and get near by lat longs. do reverse geo coding with the obtained lat longs from step 2 and find the places for each lat long pairs. cla...