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...
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!
...
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...
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"></script>');
...
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.....
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 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?
...
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?
...
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/
...
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?
...
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...
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...
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.
...
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 ?? 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).
...
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...
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
...
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...
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...
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...