I have succeeded in loading a Google map using the gMap jQuery plugin and making it display several markers passed to it in a JSON object using the pattern demonstrated here under "Map with marker and info window". So far, so good.
Now I want to have a link on the same page which, when clicked, displays the info window for a marker on t...
To remove a normal marker from a map, I understand you simply call marker.setMap(null), but when implementing the Google Maps directions services, it automatically adds markers A and B onto the map ( calculating directions from point A to point B ). I do not have control over these markers, so I cannot remove them in the normal way. So h...
Hello,
I like to create a map with Google Maps that can handle large amounts of markers (over 10.000). To not slow down the map I've created a XML-file that only outputs the markers that are inside the current viewport.
First, I use initialize() to setup the map options:
function initialize() {
var myLatlng = new google.maps.L...
What is the most effcient approach to check if there are any markers within a viewport?
A perfect solution wouldn't require checking all the markers one-by-one if it's contained by the viewport.
...
I'm trying to load a number of predefined markers on a map. I also want to allow clicking to create a new marker. I want the markers to be connected via polylines and I'm trying to get the polylines to redraw after a marker is dragged and dropped.
The following script seems to work for the last stop that is preloaded, as well as all n...
I would like to do a very simple task: add some markers in a Google Map using a list of addresses from an array.
I have been thinking about generating the Google Maps JavaScript API code using ruby (printf) but this does not seem like a very clean and beautiful solution...
I have read about YM4R for Ruby on Rails... my project is prett...
What would I use to make a map type site of my city that when someone typed in a business type, all of those type of businesses would be highlighted somehow?
...
Hi,
I have a map where DirectionsRenderer() finds route from one point to another. This works fine. In addition I fetch GeoRSS from Flickr and it shows the geotagged images in the map also correctly. BUT the flickr markers are not active.
How can I get those markers active? To open the flickr image in InfoWindow.
It works correctly if...
Is it possible to programatically generate markers in Google? For example, I have a database of services and locations that I want to plot on a Google Map using PHP.
Using the Maps API v3, I have created a map and plotted the services fine using markers and info windows, but what I really want to do is generate numbers (1,2,3,4... etc.)...
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" ...
I am pulling georss data from feeds and overlaying them onto my map with Google Maps Geoxml. How do I replace the default markers that appear on these map overlays? Currently they are default blue pins but I would like to remove and replace it with something more appropriate for my theme.
I am working on a map for a Wordpress childtheme...
I use Google Maps JavaScript Version 3 and JQuery.
How do I create a complex marker similar to these:
or
Label and image separate:
Please excuse my funny English.
...
This problem has really troubled me and yet to have a solution.
I have a list of locations with latitude and longitude.
And each time i click on the button next, it suppose to auto open the infowindow of the location one by one each click. However, the infowindow and marker always open at the center. May I know how can I make the locat...
I'm trying to achieve the following thing: Have different types of markers on my map for example, schools, libraries, bus stops and I want to be able to show/hide each group of markers.
I have been searching google for a while but nothing came up :/
Any ideas how this can be achieved ?
...
Hi Everyone,
here is my code - I've tried using the google maps api and other tutorials, but I can't seem to get the code right. It either displays the default icon or no icon at all.
Here is the unaltered code -
<script type="text/javascript">
//<![CDATA[
<?php if ($er...
I'm developing a Google Map API v2 app, where markers are loaded from a database. These markers can then be dragged to a new location by a user and saved to the database.
I'm adding these markers as draggable, however I don't just want the users to be able to drag them accidentally. So I have added a button to enable the dragging and th...
Hi all,
I am trying to get something very simple done since a long time with Google Maps, and just can't get it done. This is so confusing and counter-intuitive unlike many Google products. I am not sure if I should be putting this question on superuser.com , but I am putting it here, as this is far more active.
Say, I am in a new town...
I have found several V2 examples of how to pan the map while a marker is being dragged. For example: http://www.putyourlightson.net/projects/coordinates
// create map and add controls
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
// set ...
I'm currently writing an app displaying a MapView showing a google map. i used the "hello map view" tutorial from http://developer.android.com/resources/tutorials/views/hello-mapview.html and this works so far: the map is displayed, centered and zoomed correctly, even the OverlayItems i added are displayed correctly.
But when i click on...