google-maps

Google maps api V3 - Adding multiple markers dynamically from query results

Hi there. I'm trying to set up a map on a page with a couple of links set up underneath that when clicked, will dynamically query my database and the result set output on the map. I've spent quite a lot of time googling this but can't find quite what I'm looking for. I've got as far as using AJAX to return the lat and lon coordinates OK,...

How to display and capture user selection on a country map

We would like to display all countries by continent (e.g. asia, europe, south america, africa ...) and capture user selection of a particular country within a continent. What kind of options are available for achieving this? This would be much similar to identifying countries on the map in freerice. I am not sure of the available options...

get client's location through google map api

Dear all, I would like to get client location dynamically through google maps api. Below are my code: /*Call external api dynamically*/ var script = document.createElement("script"); script.src = "http://www.google.com/jsapi?key=" + api_key + "&callback=loadm"; script.type = "text/javascript"; document.getElementsByTagName("head...

Google Map API v3 - Problems to Assync geocoder.geocode [ Javascript ]

I'm having trouble getting the position of an address. However, this problem occurs only the first time that I run, ie it is necessary that every time I make the query, I click twice, for only the second values are obtained. I believe the problem is due to be asynchronous method. But I am not able to solve the problem. Some of his frien...

Google maps, where is my code faulty?

I don't understand what is wrong? is it my Xelement call or is my flex file incorrect? private void button2_Click(object sender, RoutedEventArgs e) { XElement call = new XElement("invoke", new XAttribute("name", "clearMarkers"), new XAttribute("returntype", "xml")); try ...

Small Google Maps Infowindow - Smaller than 200px

I have a map_canvas with a width of 225. I want my infobox to be smaller than this (eg. 150 px). Is this possible? I tried maxWidth and adding styles, but nothing seemed to work. A screen (on imgshack) can be found below: Also, I'm using v3 of Google Maps Javascript: var results_coods; var map_2; var marker_2; var infowindow_2; f...

Is it possible to style military bases only with the new Google Maps v3 styled map?

Already asked on Google groups, not getting any responses... I was playing with the Google Maps v3 style wizard and noticed that if you set a style for poi only, it will set the style for military bases. Unfortunately, it also sets styles for all other points of interest. Anyone know if there is a way to style military bases only? poi....

Calculating the bounding box using Javascript

I have a latitude/longitude value and distance value. I need to calculate a bounding box with the given location as the center. so if the distance was 200 meters then the rectangle box should be 200 meters in front, behind, to left and right. How do I go about doing this using JavaScript? ...

Looking for a Flash Mapping Framework with Multiple Levels

I'm looking to create a Flash Map with multiple zoom levels. Ideally what I'd like is to be able to click onto a 'state' area, and then have the map zoom down to a sub-area (which can then either have a link or zoom down to yet another sub-area). Ideally I would like to be able to define sub-areas recursively (e.g. state area, region ar...

Google Map Get Direction Search Algorithm

Hi! I learned that Google Map has a Get Direction feature that let users find the shortest path from one point to another. What search algorithm did Google used for this search? Is this algorithm can be implemented in the Android platform, knowing that it has low memory and it's running in Java(tend to be slow)? Thanks in advance! ...

I want a package of google map api development,who can help me?thanks~!

I want a package of google map api development,who can help me?thanks~! ...

How can I retrieve business listing with their geocodes for a specific region?

Hi, I have a form with a search box. User can enter any geographic location like country, region, city, etc. With this, I want to retrieve business listing alog with with thier geographic coordiantes. I will display this listing in a defined manner. If your clicks on a business, I'll show that location in the google earth browser plugin...

Android - Creating a Crosshair in the Center of My Google Map

Hello, I am new to Android development and I have a problem that I have been working on for hours with no success. I want to create a cross-hair in the center of my Google map that stays in the center even when the map is panned. I have a .png image of the cross-hair in my drawable directory. Additionally, I have a MapView that displays...

Google geolocation API - Use longitude and latitude to get address?

Hi all, I have noticed a lot of information about how to get your location using Google geolocation looks, based on IP. But I am wondering if and how I could use this service to input a location (longitude and latitude) and get back the current address, or at least a city, state. I would like to do this in C#, but I'll work with any l...

Make absolutely-positioned <div> fall below info windows on Google Maps

This image should explain my problem: I'm using version 3 of the Google Maps API (if relevant) ...

Strategy for lazy-loading markers into a Google Maps Javascript API map

I'm building an ASP.NET MVC site where I want to have a Google Maps Javascript API map that shows markers loaded from my backend through AJAX. As I don't want the client to run into memory issues, I want to lazy-load the markers and apply them to Fluster2 to put them into clusters. I think the best way to lazy-load the markers is to add...

Google Map API V3.0 - How to Detect MapTypeId Change

I am using the Google Map API V3.0 To add a listener to detect a zoom change works with the following: google.maps.event.addListener(map,'zoom_changed',function()) What is the code to detect a change in the map type from ROADMAP to another view like SATELLITE? I can get the value: val myMapType = map.getMapTypeId(); but do not know...

MK MapView on iPhone App

The app I am developing uses a tab bar with a Map View. The problem is the tab bar blocks out the Google Maps logo at the bottom left hand corner. How do I set the height and width of the Map View to ensure that the Google logo is visible? I've tried adjusting the Map View on IB but the size doesn't seem to change as the logo is still bl...

Google Maps API v3 adding an InfoWindow to each marker

NOTE: I'm using v3 of the Google Maps API I'm trying to add an info window to each marker I put on the map. Currently I'm doing this with the following code: for (var i in tracks[racer_id].data.points) { values = tracks[racer_id].data.points[i]; point = new google.maps.LatLng(values.lat, values.lng); if (val...

Google Maps load() initiation

I am currently working on an application that pulls Google Map locations from an XML file and loads them into the map. Currently the Load() function is attached to the body tag. IOW, body onLoad="load()" onunload="GUnload()". I'm working in a PHP environment so I've created one file that does the mapping and I want to include it in nume...