I am looking for javascript code that display marker on top of others.
May be there is any method of GMarker that set marker on top (z-index kind of).
For solution, I destroy marker and created again. The solution works before some time (when I tried this solution) but not right now.
...
I cannot seem to figure out why the object returned by getProjection() is undefined. Here is my code:
// Handles the completion of the rectangle
var ne = recBounds.getNorthEast();
var sw = recBounds.getSouthWest();
$("#map_tools_selat").attr( 'value', sw.lat() );
$("#map_tools_nwlat").attr( 'value', ne.lat() );
$("#map_tools...
I have a map view to which I added a long press gesture recognizer and Overlays. I came across a strange behavior.
In case mapType is set to Hybrid and there is no gesture recognizer, the Overlay views are displayed but the map is of type standard.
In case mapType is set to Hybrid and the gesture recognizer is added to the view, the O...
What is the best way to plot points on a Google map? I have a bunch of addresses (about 300) stored in my database, and right now I am outputting each address into a JS array and plotting each address by looping over the array and running a function that geocodes the address and creates a new marker. However, I'm not sure if that is the ...
Hi, I was wondering if there is a way to embed some text on Google Maps. I searched the JS API and came up with some ideas, but I wasn't really satisfied with them.
The situation is that I draw some polygons on the map, and I want to show some numbers in that polygon. I implemented it with infoWindows now, but I want the numbers embedd...
Hi
I'm trying to display an array of postcodes onto a google map using PHP and using the Symfony Framework (1.0)
The main problem I am having, is that there is some text associated with each marker, i.e when you click the marker a popup appears.
The main problem is that the text should point to the correct postcode/marker on the map, ...
Hello,
Is it possible to have a callout attached to an ItemizedOverlay item like in the iPhone and Google maps?
...
Hello.
Why this isn't true?
$('#myId') == document.getElementById("myId")
I'm using JQuery 1.4.2 and trying to insert a GMap into an div element.
So, this works:
new google.maps.Map(document.getElementById("myId"),myOptions);
but this doesn't
new google.maps.Map($("myId"),myOptions);
...
i want to get the map.controls[google.maps.ControlPosition.BOTTOM_LEFT] 's (lat,lng)
so how to get it ?
thanks
...
This is my code:
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
google.maps.event.addListener(map,'p...
I have got a database with latitude and longitude values in it. I can show only one marker at a time. I would like to show multiple markers at the same time. How can I do it?
...
this is my code:
google.maps.event.addListener(map,'bounds_changed', function () {
var left_bottom=map.getProjection().fromLatLngToPoint(map.getBounds().getSouthWest())
console.log(left_bottom)
});
i think the result may be this :
(0,some number),
but the result is :
(232.31212222222223, 155.07739681...
I'm showing a Google Map based on a street address supplied from an outside source.
My JavaScript is very simple, and I build the link like so
var googleMap = 'http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=' + address + '&ie=UTF8';
This is quick and easy, and works. But some of the in...
hey guys,
can anybody tell me or send me some links if there is any..which tells how Google map draw on canvas in android. what is the logic behind that.
any help will be highly appreciative.
thanks alot
...
I have created a custom Google Maps projection using the Google Maps Javascript API V2. It looks like this, as per the API specification:
function PProjection(levels) {
this.fromLatLngToPixel = function(latlng, zoom) {
...
};
this.fromPixelToLatLng = function(pixel, zoom) {
...
};
this.tileCheckRange = function(tile, zoom, ...
Hi, I'm putting google maps markers into array, and everything works fine, when i do it manually:
var m =[];
m[0] = new google.maps.Marker(.....
google.maps.event.addListener(m[0], 'click', function()
{
alert('Markerklik');
$("#trasa").append(m[0].getPosition().toString()+"<br>");
});
m[1] = new google.maps....
I am trying to create markers from a database. I do this by outputting the DB results to json and loading the json in the google maps code. The JSON is valid and is being loaded.
My full Google maps code is:
google.load("maps", "2");
// make a json request to get the map data from the Map action
$(function() {
if (google.maps.BrowserI...
We are building a service that uses location-based pricing. The user can input an address and see prices in his area as determined by various server-side algorithms. It is then possible to order items based on these prices.
I'm trying to figure out if there is a way we can use client-side geocoding in this scenario (to avoid hitting Goo...
I have a site that I screen-scrape off GoogleMaps to get the driving distance from one point to another. It isn't heavily used (20 requests per week max), but Google's recent upgrade broke this functionality.
I used to use this:
$url = 'http://maps.google.com/maps?f=d&hl=en&saddr='.$start.'&daddr='.$finish.'&output=xml';
$ch = curl_...
i call the url of googlemaps to show a position to a given lat and long.
How can i mark this position on the map with a pin ?
NSString *latlong = [NSString stringWithFormat:@"%@,%@", einBetrieb.lat, einBetrieb.lng];
NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?ll=%@",
[latlong stringByAddingPercentE...