|
I want to show limited numbers of markers(let's take 50 or so...) at all zoom level and in a manner that markers covers all entire Google map display.
So, If I am viewing whole world in map, it will show markers all over the world not to exceed a certain...
Started by openidsujoy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You should use a marker manager!
See http.
What you are describing, but it will effectively limit the number of markers you have when you://googlemapsapi.martinpearman.co.uk/articles.php?cat_id=1 .
|
|
Is there any way to remove the markers that the directions put on the map? I have 4 locations that show on the map. A green arrow where the user is and 3 locations marked A, B, C. If I click on one it routes between the user's location and the marker....
Started by Praesagus on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
For each marker you want to remove, do
marker.setMap(null);
http://code.google.com/apis/maps/documentation/v3/overlays.html#Markers
Hello guys, have you find the solution already? The setMap(null) would be fine, but how to get the marker....
|
|
Hi,
i've placed say 20 infowindows+markers+icons on my map. when the user pans to the right, i want to remove all existing infowindows+markers+icons on my map and paint the new ones.
is there an easy way to do this?
Michel
Started by Michel on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Remember....
Found it, it's subgurim_GMap1.clearOverlays();
in javascript, where subgurim_GMap1 is the GMap_Id of your map
If you don't want to do the clearing and painting yourself, the easiest option would be to use MarkerManager , from the Utility Library .
|
Ask your Facebook Friends
|
I want to add a Listener event to each generated marker, so that when you click a marker you are redirected to the permalink url. With the code below the permalink value is the same for every marker(it get's the last value). I've read about closure problems...
Started by Daniel Westman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
ParseFloat(markers[i].getAttribute("lat")), parseFloat(markers[i].getAttribute("lng"))); marker = new://localhost/map/generatexml.php", function(data) { var xml = parseXml(data); var markers = xml.documentElement.getElementsByTagName....
|
|
I just discovered the existence of markers in vi. How do you use it, what do you know about them? are they useful, say for a C++ developer?
Started by Andrei on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
In either case, p or P can be used....
Markers are useful) it.
If I'm declaring things are first explained so that I can jump back for a quick reference .
The bottom, I can set markers to quickly jump back and forth between the two locations.
|
|
I have divided the my google map display in to numbers of parts, Now I want of find it out if any markers are positioned inside a/any particulate cell.
Any Help ?
Farther Explained :
I have got the map bounds by
map.getBounds();
method and then farther...
Started by openidsujoy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Also take a look on it , in some cases could be useful) { var lat = markers[j].get_position....
After you have and check whenever the marker within it.
Each marker has a method called get_position( ).
So keep all markers in array.
|
|
Using the google maps (and JavaScript) I have been able to easily display several markers which each have a nice little info window over them.
//Create map over USA map = new google.maps.Map2( document.getElementById('map') ); map.setCenter(new GLatLng...
Started by Xeoncross on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Create an event listener sideHtml = '<div id="1">this is my text</div>'; create_marker(38.95940879245423, then marker, and then add to map function....
Assign an id to each marker and its corresponding element in the sidebar.
|
|
In the following example the markers are loaded from a JSON.
If there are 20,000 markers the JSON is going to be quite big.
Is there any way to send different JSON files according to zoom level instead of sending one huge array?
http://gmaps-utility-library...
Started by Franek on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The informations about how a marker is accessible in the JSON data (pro: only one time data need to be loaded, con: iterate through the data with JavaScript ) Calculate visible markers in JavaScript (pro: very, send the new zoom level to....
|
|
In Google Maps API v2, if I wanted to remove all the map markers, I could simply do:
map.clearOverlays();
How do I do this in Google Maps API v3 ?
Looking at the Reference API , it's unclear to me.
Started by mp_ on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
People suggest to keep references to all markers place (doesn't pollute the namespace....
(You could edit my setMapIt seems that there is no such function in V3 yet .
Remove one marker manually, it's reference will still be in markers array.
|
|
I am making a mashup where thumbnails will be shown over a google map.
The problem is that many thumbnails will share the same coordinate. So if I plot them like markers, they will be one on top of the other.
Have you seen any creative solution for this...
Started by Victor P on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You basically just show one marker that indicates marker (like a floating DIV that....
Then at an appropriate zoom level the markersYou'll want to look up the term Clustering .
There are actually more than one marker at that location.
|