I am adding circle overlays to my map. I can now properly set the color, opacity etc. How would I achieve a color gradient (i.e. radially out from the center)? Is this even possible?
(I am using api v3, but if you have a solution with v2 I would love to see it too).
...
There's a few questions like this on Stack Overflow but because i can't find any quite similar enough for me to follow.
I'm looking to select rows from db which are within x miles of a target.
example table columns:
| city_name(varchar) | lat(decimal) | lon(decimal) |
query effect i'm looking for (either using php or mysql)
$target...
I have a job board where a user submits his location, via Google-Maps API, which plots the job on a map.
The problem is, because it is a location based job board, I want to make the most broad input allowable a ZIP code (so users can either enter a ZIP code or address). Is there anyway to either parse the input to determine whether it'...
The Google Maps API for a Polygon does not offer a drag method.
What would be an efficient way of implementing such a feature (i.e., sufficiently optimised so that it would not kill a four year old laptop)?
Thank you!
...
Hi I just want to ask about those custom Google maps that you can put on your web page, I was thinking of using them for a couple a "maps" in a game to show where certain items are on one "layer", location of destructable objects in another layer, spawn points and all that. I was wondering if the Google API can cover all these or should ...
Hi everyone,
Please tell me how to use geocode to get current country name where the site is loaded.
I have to store country name in session.Also have a javascript to find out country name but i used jsp pages so it wont allow to store javascript varialble in JSP session.Plaese if anyone knows answer help me.In geocode GClientGeocoder()...
Say have a mysql database with these cols:
| house | postcode | lat | lon |
The postcode's are complete but lat and lon are empty.
I want to write/find a script that i can run once to complete the table.
Is this possible purely in php (any tips?) or do i need to use a javascript api and $_POST to a php file?
...
I have a custom google map. It seems very simple.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<!--google ma...
I have added context menu to my google map like this:
map.addControl(new ContextMenuControl());
it is rendered with English texts whish is not what I want unfortunetly. Do you know a method to change locale for gmaps context menu (I want to show menu positions in language other than English)?
In a big picture I want to deliver functi...
When I add this script to a plain HTML file's HEAD section
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
and I run this script on the body onload,
function initialize() {
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
cent...
I am using the new Google Maps v3 STYLED MAP.
I want to change how the map is Styled based on the zoom level.
I have the following pseudo-code, how do change my map-style based on the zoom level?
var myOptions = {
zoom: zoom,
center: latlng,
disableDefaultUI: true,
navigationControl: true,...
How do I integrate Salesforce with Google Maps? I'm just looking for information on how to...
Search for contacts in Salesforce
Plot those on a google map.
...
I want to fire dragend event of a marker in another event say click event on the map. how can I do that?
google.maps.event.addListener(map,'click',function(pt){
posSelectMarker.setPosition(pt.latLng);
//Here I want to fire dragend event.
});
...
I have a bit of a puzzle on my hands. I'm Using Google Maps v3 and MarkerClusterer v3. When I load my page, the map appears, the points are all there, but nothing is clustered.
If I go to the firebug console and do:
markerCluster = new MarkerClusterer(map, markers);
Suddenly clustering works.
Weirdly, If I put an alert between the m...
How I can load the Google maps like this:
function loadScript() {
var script = document.createElement("script");
script.setAttribute("src", "http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAAAXN1Nhid00zgr5mrYEM7MhQE7kuAsiuX3WD62vgNgdNYG4wQzhQs7fQD8XzGkuXLIejRfouX3li8xg&async=2&callback=loadMap");
script...
Due to some limitations, I cannot have the script tag for the Google Map API available on page load. I have tried adding the script to the page many different ways, including using jQuery to add a script tag like so:
$('head').append('<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>...
In V2 there was a way to limit panning/dragging so the map stays within certain bounds. How is that done in V3?
Let's say I want the users to only look at Europe. I've already limited the zoom, but if I allow dragging (which I have to in this case, for other reasons) then the user can pan beyond the area I want to show.
Please give wo...
In a map application i display markers on a map based on the visible map area using a query similar to the following.
SELECT * FROM (`properties`)
WHERE `lat` > '-11.824448' AND `lat` < '84.124002' AND
`lng` > '-152.243398' AND `lng` < '-39.743398'
LIMIT 20;
Due to the index on the table this results in results appearing us...
I've been having a lot of trouble with a Google Maps mashup because the API only lets you set a z-order for specific item types (e.g. marker, or overlay). For example, you can set a marker's z-order, but that only affects the z-order relative to other markers. I have a map with polygons and markers, but at certain times, I want to make...
Hi,
I have a webpage with google maps and javascript. On IE 6 the map is displayed but the markers are not. I really cannot find why. The maps shows ok on any other browser i can put my hands on.
The webpage is http://www.appleatwork.org
Thanks for your help.
Ciao
b
ps: there is a similar question "IE6: Doesn’t load Google Maps API v3" ...