Hi all
i have a Google map running on the v3 API, i added some custom markers, is it possible to make them scale depending on the zoom level of the map ?
I tried searching the reference but cant seem to find any methods to resize a MarkerImage.
Maybe i have to remove markers everything the map changes zoom and create new markers in diff...
Google exposes data in a KMLFeatureData when you click entities in a KML Layer. However, there doesn't seem to be a good way to get the individual Markers, Polylines, or Polygons. What methods do people use to generate sidebars or lists of the elements in a KML layer? I've thought of maintaining a separately parsed list to generate a ...
i follow this article ,and the code is :
var myLatlng = new google.maps.LatLng(40.65, -73.95);
var myOptions = {
zoom: 12,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var nyLayer = new google.maps.KmlLayer('http://www.searcharoo.ne...
I'm working on mvc project which include Google map inside
My system allow user to send tweet to system and keep it in database then will show tweet on the map
what i need to do is "Auto update marker on the map when system get the new data"
any suggestion? thank you very much ^^
...
Is there any easy ways to find the bounding box of a polyline using Google Maps API v3? I'm working on a project where I need to update the bounds as data is added and removed from the map. This is pretty easy by just doing bd.extend(point) where bd is the bound object and point is a LatLng object. The problem is when I start removing da...
Geocoder getFromLocationName is not returning anything if I'm searching for business places. Here are my finding so far:
grocery places, commercial buildings -> no result
schools -> finding results, but only returning Latitude and Longitude. I have to do reverse geocoding in order to get the address based on the coordinates, but the ad...
For Google Maps V3, I have some code that created a marker when a polyline was clicked. I also have some code that creates a marker when the map is clicked.
Earlier today, when I clicked on the polyline, only one marker was created (I'm guessing it didn't fire a map-click event). Now tonight, I have not changed my code at all, and it ...
Hello everyone,
I can draw overlay items onto google maps just fine, an image that looks like:
______
| |
______
\/
Where the "\/" part is the "pin" that marks the lat/lon on the map and a picture in the middle of it. My question is, is there any way to expand this when the user clicks on it? I'll of course have to change this...
Hi,
I am using JavaScript to retain the current location and the map
This is my code:
<html>
<head>
</head>
<body>
<div>
<script type="text/javascript">
navigator.geolocation.getCurrentPosition(
function(position){
var latitude = position.coords.latitude;
...
I have a bunch of GPX files on our server and would like to overlay them on top of a Google Map to display them on our website. We use Perl for all our site scripts however we're having a hard time figuring out how to format the data correctly to display it in Google Maps.
I'm hoping that some GPX expert out there can explain at a high ...
Hello guys,
For the project I'm currently working on I have a database with locations (restaurants, hotels, coffee shops etc.) and I have to place each one on a map. For each location I have its name and full address. What is the best and fastest way to accomplish this using Google Maps? I'm using PHP.
Thanks.
...
I have a mapview where I want to track the user's current location. GPS as well as 'use wireless networks' is activated in my phone settings.
Nevertheless, since I'm indoor I don't get a GPS fix, therefore the location is determined via network; wifi spot is available.
I have the Google Maps app running as well as my application running...
Hello,
I have a number of waypoints stored in my app database, how would I pass these to the MapView in my app ?
If anyone can point me in the direction of a tutorial or some sample code would be great.
Regards,
Stephen
...
Hi
I am busy with creating a Google map v3 site. If you have a look on google maps site you see they physically zoom(CSS like deepzoom) the tile just before they load the new tiles.
I want to reproduce this on my side. The problem is i cant find anything in API reference that i can do this with. I thought of creating a imagemaptype an...
somewhat simple problem(to explain) this time:
i have an array of markers that i equip with eventlisteners thusly:
for (i in markersArray) {
google.maps.event.addListener(markersArray[i], 'click', function() {
//stuff it does
google.maps.event.removeListener(?????) //remove self... but HOW?!
});}
as i mention in t...
For my company in house use i want to develop a gis project with simple goals.
To display all places with name wherever my company presents,over the normal country map.
Connect main office with branch offices graphically ( by line ).
By clicking a place user will be directed to a new page containing information about the place.
add new...
Hi,
I need to pass a custom variable through loadFromWaypoints so that i can later use that variable in the GEvent.addListener. Any ideas?
Thanks!
...
Hey guys,
I've got a html / php form which will add values to a a database. I'd like to implemented Google maps so that when a user clicks on a location on the map it will automatically add the latitude and longitude of the location which they clicked at to 2 fields on the HTML form (the Latitude and Longitude fields). How would I do th...
Hey,
Just a follow up from a previous question. I've got the following form..
<body onload="initialize()" onunload="GUnload()">
<form action="welcome.php" method="post">
Name: <input type="text" name="fname" /><br/>
<br/>Description: <BR>
<TEXTAREA NAME="description" COLS=40 ROWS=6></TEXTAREA><br/>
<div i...
Hey guys,
I've got the following Google map on my website..
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(53.347247,-6.259031), 13);
map.setUIToDefault();
GEvent.addListener(map, "click", function(overlay, latLng)...