[Google Maps API v3] Re: Zoom Level and Link Highlight

2010-07-26 Thread Krishnam
Hi Larry, Sorry for posting this in this group. Shall I post this in V3 group? I am a web designer and i am working on Google Maps API for the first time. I have copied the code from http://econym.org.uk/gmap/example_map9.htm I made some changes to styles but am not able to do much. Here is th

[Google Maps API v3] Piritiles, an App Engine based map tile cutter

2010-07-26 Thread Mehmet
Hi, I've been working on a web based tile cutter based on Google App Engine (Python) for the past few weeks: http://www.piritiles.com You can create a custom Google Map out of any image with a few clicks. Here's links to a few example maps: Burning Man aerial view: http://www.piritiles.com/map/8

[Google Maps API v3] Re: Zoom Level and Link Highlight

2010-07-26 Thread geocode...@gmail.com
On Jul 26, 10:55 pm, Krishnam wrote: > Hi all, > > Real new to google maps API. > > I am using this map for my web site. > > Example pagehttp://econym.org.uk/gmap/basic9.htm > > Maphttp://econym.org.uk/gmap/example_map9.htm > > I need help; > > 1) When I click on a link it should highlight so that

[Google Maps API v3] Re: GeoRSS/kmlLayer Custom Icons

2010-07-26 Thread Grok Lobster
You don't need stylemap tags, just style tags and then refer to those ids in your placemarks. On Jul 26, 6:02 am, mIDO wrote: > Hi People, > I'm migrating from v2 to v3 and I have a question. Now, i'm using > KmlLayer, but How Can I use custom icons for each rss? Supose I have 3 > feeds: hotels,

[Google Maps API v3] Re: StreetView and InfoWindow

2010-07-26 Thread William
On Jul 27, 1:24 am, CSharp wrote: > Here's the link for the StreetView that I promised to include: > > http://www.mentoreng.com/testing/public/streets.html on IE8 I found that the "je is null" error doesn't happen if you construct the panorama with the option of visible:false, rather than setting

[Google Maps API v3] Zoom Level and Link Highlight

2010-07-26 Thread Krishnam
Hi all, Real new to google maps API. I am using this map for my web site. Example page http://econym.org.uk/gmap/basic9.htm Map http://econym.org.uk/gmap/example_map9.htm I need help; 1) When I click on a link it should highlight so that its clearly visible that the map is showing that parti

[Google Maps API v3] Re: Just the Borders On Satellite View

2010-07-26 Thread Chris
Yeah something similar to that, except I would like to do it in Satellite Mode with just the borders. No roads or names of places. Did you export the borders from google earth or something? I'm trying to overlay the states within Australia. Nice maps by the way, how did you do that? Custom js? C

[Google Maps API v3] Re: Set zoom after loading KmlLayer?

2010-07-26 Thread Robbie
Joseph, I took a look at your document and managed to get my map working for one of the KML files (I'm trying to display two). All I did was add " {preserveViewport:true}" to the end of both KML files. That causes it to be zoomed in to the correct area, but only display one KML file. But thank yo

[Google Maps API v3] Re: How add Logo in the top right corner ?

2010-07-26 Thread Joseph Elfelt
Consider a KML ScreenOverlay. You can park it anywhere. Stick your logo in a png file. For more info: http://code.google.com/apis/kml/documentation/kmlreference.html#screenoverlay http://groups.google.com/group/kml-support -- You received this message because you are subscribed to the Google G

[Google Maps API v3] Re: Set zoom after loading KmlLayer?

2010-07-26 Thread Joseph Elfelt
Robbie, I looked at your map but did not see radar images. I recently dealt with a related issue involving KML files, zoom and viewports. Here's the test map I made after I got it working. Hopefully this will shed some light for you. http://www.mappingsupport.com/forum_post/preserveViewport_kml

[Google Maps API v3] Re: Set zoom after loading KmlLayer?

2010-07-26 Thread Robbie
Rossko, That works like a charm! Thanks a lot! Well it works in keeping the KML from overriding the zoom I set, but for some reason the actual radar images aren't showing up unless I view it on localhost... I guess that's another issue altogether. Any insight on what could be causing that? Is it

Re: [Google Maps API v3] Re: FusionTablesLayer and infowindow()

2010-07-26 Thread James McGill
I suggest using Firebug or Chrome Developer Tools to debug your page. When you click on a Fusion Tables feature, you attempt to access the map in the line: iw.open(map); However, map is a local variable to the initialize function. If you make map global, then your code should work. Regards, Jam

[Google Maps API v3] Re: How add Logo in the top right corner ?

2010-07-26 Thread Rossko
> Do you know a working sample or the way to obtain latitude and > longitude of the corner ? That would keep changing with map movement/zoom. The usual approach would be to set up your logo as a Custom Control, like Google's logo. http://code.google.com/apis/maps/documentation/javascript/cont

[Google Maps API v3] Re: Set zoom after loading KmlLayer?

2010-07-26 Thread Rossko
> The radar images display properly, however, the > map acquires the zoom and center properties of the KML files. I'd like > to be able to force it to center on a specific location. I'd think you need to use the preserveViewport option to prevent the KML auto-centering and overriding your intial p

[Google Maps API v3] Re: Cannot access element value within info window

2010-07-26 Thread Rossko
> I have everything working great when the form is not located > in the info window (or in the "map_container" div that hosts the > google map). However when the input form is located inside the id="map-container"> that holds the map, the Javascript does not seem > to be able to getElementById an

Re: [Google Maps API v3] Misspelling in maps api documentation

2010-07-26 Thread Luke Mahé
Thanks for pointing that out, it has been fixed and should be live soon! -- Luke On Mon, Jul 26, 2010 at 6:03 PM, federico ulfo wrote: > In the doc there's a misspelling of BYCICLING wrote as BYCILING > > http://code.google.com/intl/it/apis/maps/documentation/javascript/services.html#Directions

Re: [Google Maps API v3] InfoWindows in Maps and Streetview

2010-07-26 Thread Marc Ridey
Try something like: google.maps.event.addListener(marker, 'click', function() { if (panorama.getVisible()) {   infowindow.open(panorama, marker); } else { infowindow.open(map, marker); } }); -- You received this message because you are subscribed to the Google Groups "Google Maps Ja

[Google Maps API v3] InfoWindows in Maps and Streetview

2010-07-26 Thread Douglas Rhiner
Having trouble getting InfoWindows to behave correctly ( subjective ;-) http://vicinitysolutions.cerebrateaquarium.com/map3Test.html I want the infowindows to appear when either in map-view or street- view. In the link above two of the placemarks, the two left ones, the infowindow open in map-vie

[Google Maps API v3] Re: StreetView and InfoWindow

2010-07-26 Thread Neil Drinkall
I have the same problem - it started with the 22nd July update. I haven't found a way around it yet. I start off with my street view div hidden and then show/hide it as I need to - the first time I try and show it I get the "je is null or not an object" error. I have reported it to Google and they

[Google Maps API v3] Export geocoded address to KML?

2010-07-26 Thread GR
I would like to geocode an address entered by a user, store it for display on a map, then when the user displays the map, give him the option to export the coordinates to KML. Can I do this if I purchase a Premier license? -- You received this message because you are subscribed to the Google Gro

Re: [Google Maps API v3] Re: How do i delete the marker that i selected after an overlay image comes out?

2010-07-26 Thread Federico Ulfo
To make it working you need to declare the map object first of all, and than you must attach the text of the marker: attachInstructionText(marker, *your text*); 2010/7/26 Terry > > > On Jul 26, 6:48 pm, Marcelo wrote: > > On Jul 26, 12:33 pm, Terry wrote: > > > > > I'm doing a search f

[Google Maps API v3] Set zoom after loading KmlLayer?

2010-07-26 Thread Robbie
Hey everyone, I'm new to web development, javascript, all this stuff. But I've reviewed the Google maps references and googled this issue extensively and just can't seem to figure it out. I have a weather webpage and I'd like to display some radar on a Google map. The National Weather Service off

[Google Maps API v3] Re: How to build a legend

2010-07-26 Thread inotipiedideipitoni
I don't think that this example works for my maps: i wanna build a static panel. i've created this code that works in a blank page: http://www.google.com/mapfiles/ marker_green.png"> Impianto senza ticket aperti http://

[Google Maps API v3] Cannot access element value within info window

2010-07-26 Thread kristian
Hello All, I'm creating a site where markers will be clicked, opening unique info windows which will have the destination already embedded - the user will fill in their address and click the submit button, displaying the directions to that particular marker. I have everything working great when t

[Google Maps API v3] How add Logo in the top right corner ?

2010-07-26 Thread Eric-
I am looking to add my logo company name into google maps in the top right corner. I don't really arrive using the Drawing Custom Controls. Do you know a working sample or the way to obtain latitude and longitude of the corner ? -- You received this message because you are subscribed to the Goo

[Google Maps API v3] Re: loading message with google maps V3

2010-07-26 Thread NWIPHPDEV
Just fill the div with a loading gif. function init(){ loadMap...blah...blah } Loading, Please wait... On Jul 25, 4:27 pm, Trachy wrote: > Hello, > have you an example of how to realise a loading message before map > appears. > Thanks > Trachy -- You received this message because you

Re: [Google Maps API v3] How do i delete the marker that i selected after an overlay image comes out?

2010-07-26 Thread Federico Ulfo
Try this marker.setMap(null) Bye, Federico. 2010/7/26 Terry > I'm doing a search function whereby when i search for an area in my > campus, a maker shows up to indicate where is the location that i have > search for. After that, i would click on the marker and there would be > an overlay image t

[Google Maps API v3] Misspelling in maps api documentation

2010-07-26 Thread federico ulfo
In the doc there's a misspelling of BYCICLING wrote as BYCILING http://code.google.com/intl/it/apis/maps/documentation/javascript/services.html#Directions -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, se

[Google Maps API v3] Retrieving FeatureData from KML in Google Maps

2010-07-26 Thread NWIPHPDEV
Hi, I've been trying to get this work for days now. According to the docs, V3 of the Maps API allows you to get the featureData from a KML Feature on a Kml "click" event after the KML is overlaid. I'm getting "some" data in the returned JSON object, but not everything thats contained in my KML (

[Google Maps API v3] GeoRSS/kmlLayer Custom Icons

2010-07-26 Thread mIDO
Hi People, I'm migrating from v2 to v3 and I have a question. Now, i'm using KmlLayer, but How Can I use custom icons for each rss? Supose I have 3 feeds: hotels, apartments, restaurants and each of them has a lot of points. I want a diffenrent icon for each one of the categories... Furthermore, sh

Re: [Google Maps API v3] Re: delaying Google map event for mouseover on markers

2010-07-26 Thread Federico Ulfo
setTimeOut exec the action with certain delay, use instead Date object to set a waiting time to exec the action: here your solution, may not work propertly but, you get the idea: var onOverTime, oldOverTime = 0// time on mouse over var actionTime = 3 // seconds to w

[Google Maps API v3] Snap to street in v3

2010-07-26 Thread gvrocha
Hi all, Does anyone know how to snap a user clicked point to a street in the version 3 of the GMaps API? I tried the trick of asking for directions from the clicked point to the same point used in http://econym.org.uk/gmap/example_snap.htm only I used the directionsservice in v3 instead

[Google Maps API v3] Re: Marker Options - Title with Foreign Language Characters

2010-07-26 Thread Team Fauna
Great, i'll try that out! Thanks for the help :) On Jul 24, 2:44 am, Pil wrote: > The title property of markers expects a string not html. > As far as I've seen Google generally and consistently uses utf-8 > characters, so the easiest solution would be using the encoded utf-8 > charset too. > > B

[Google Maps API v3] Re: Reuse custom map overlay tiles at different zoom levels

2010-07-26 Thread spiderplant0
Hi Marcello, thanks for this idea. I tried it out and the overlay maintains its quality even when you zoom in quite hard. The trouble is google maps stops showing the ground overlay when you exceed a certain zoom. It seems to stop showing the overlay when the percentage of the ground overlay that i

[Google Maps API v3] Re: Size of map in %s

2010-07-26 Thread karlh
thanks. will investigate with the authors of highslide. There is no problem as such with the 'map'. It is with its size. K On Jul 26, 9:42 pm, Rossko wrote: > > Have checked and it is already  set as: > > html,body{      padding:0; > >         height:100%; > > In a 'normal' webpage, will inher

RE: [Google Maps API v3] Re: delaying Google map event for mouseover on markers

2010-07-26 Thread ايميلي يتحدى الملل
> Date: Mon, 26 Jul 2010 15:31:50 -0700 > Subject: [Google Maps API v3] Re: delaying Google map event for mouseover on > markers > From: aliquis.igno...@gmail.com > To: google-maps-js-api-v3@googlegroups.com > > Awesome! I should have thought about the clearTimeout and the > mouseout event. >

[Google Maps API v3] Re: delaying Google map event for mouseover on markers

2010-07-26 Thread CSharp
Awesome! I should have thought about the clearTimeout and the mouseout event. Thanks! On Jul 26, 1:31 pm, Rossko wrote: > > Can this be done and how (if possible)? > > Use setTimeout. > The trick is to reset a timer upon mouseout event occuring inside your > 'settling time', so that the timeou

Re: [Google Maps API v3] Re: initialize and bounds

2010-07-26 Thread David Giglio
cool, thank you. Sorry, I should have looked it up. On Jul 26, 2010, at 5:08 PM, geocode...@gmail.com wrote: > On Jul 26, 1:56 pm, David Giglio wrote: >> I'm getting the hang of this, but am confused about when I can use certain >> functions. For instance, why does bounds here return undefined

[Google Maps API v3] Re: initialize and bounds

2010-07-26 Thread geocode...@gmail.com
On Jul 26, 1:56 pm, David Giglio wrote: > I'm getting the hang of this, but am confused about when I can use certain > functions. For instance, why does bounds here return undefined? It seems like > I have to wait for the map to fully appear, but I don't understand...does the > map loading comp

[Google Maps API v3] initialize and bounds

2010-07-26 Thread David Giglio
I'm getting the hang of this, but am confused about when I can use certain functions. For instance, why does bounds here return undefined? It seems like I have to wait for the map to fully appear, but I don't understand...does the map loading completely trigger an event I can use to put my code

[Google Maps API v3] Re: Size of map in %s

2010-07-26 Thread Rossko
> Have checked and it is already  set as: > html,body{      padding:0; >         height:100%; In a 'normal' webpage, will inherit 100% of the size of the desktop window, which is some pixel size known to the browser. However, if this webpage is in an , it'll inherit 100% of the iframe size ; whi

Re: [Google Maps API v3] Re: Problem with opacity for ImageMapType in Internet Explorer (IE)

2010-07-26 Thread Franck Curier
Hi, I posted a bug report on this like a month ago : http://code.google.com/p/gmaps-api-issues/issues/detail?id=2528 It's been tested extensively, and the only workaround you'll find online is to use the DOM and the CSS property that's IE specific. Star it to make them acknowledge it. We decid

[Google Maps API v3] Re: Size of map in %s

2010-07-26 Thread Grok Lobster
Include the map div as well html, body, mapdiv_id#{ ... On Jul 26, 11:10 am, karlh wrote: > Hi > Have checked and it is already  set as: > html,body{      padding:0; >         height:100%; >         border:none; >         width:100%; >         margin:0; >         background-color:#CCFF77; >      

[Google Maps API v3] Re: IE 6 Markers Disappear

2010-07-26 Thread geocode...@gmail.com
On Jul 26, 12:32 pm, JOS wrote: > Hi, > > When I creaet some markers on my api v3 map they appear fine but can > dissapear when I zoom in using IE 6...any ideas why this may be > happening. This has been reported before. http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/cbb9

[Google Maps API v3] IE 6 Markers Disappear

2010-07-26 Thread JOS
Hi, When I creaet some markers on my api v3 map they appear fine but can dissapear when I zoom in using IE 6...any ideas why this may be happening. I am calling the initialize method from a jQuery(document).ready(function() { Thanks, Jerry var map; function initialize() { var my

[Google Maps API v3] Re: delaying Google map event for mouseover on markers

2010-07-26 Thread Rossko
> Can this be done and how (if possible)? Use setTimeout. The trick is to reset a timer upon mouseout event occuring inside your 'settling time', so that the timeout never expires to triggers the infowindow. http://www.akxl.net/labs/articles/handling-events-in-javascript---from-basics-to-best-prac

[Google Maps API v3] Re: Mouse doesn't work in Webkit browsers

2010-07-26 Thread archinform
me again, just want to refresh my question. Still haven't found a solution for this bug/problem. Isn't out there anybody who have some helpful comments? Sascha On 30 Jun., 13:42, archinform wrote: > Hi Google team, > > spent some more hours on finding the bug, why the Google maps aren't > movabl

[Google Maps API v3] delaying Google map event for mouseover on markers

2010-07-26 Thread CSharp
Is there a way to delay a mouseover event from occurring? With this, I don't mean setTimeout and call some anonymous function or some other function after a certain time has elapsed. The setTimout only delays and shifts all functionality to another open queue time. So, in the end, the Infowindow

[Google Maps API v3] Re: Size of map in %s

2010-07-26 Thread karlh
Hi Have checked and it is already set as: html,body{ padding:0; height:100%; border:none; width:100%; margin:0; background-color:#CCFF77; } K On Jul 26, 6:31 pm, Grok Lobster wrote: > http://econym.org.uk/gmap/basic19.htm > > On Jul 26, 8:59 

[Google Maps API v3] Re: Size of map in %s

2010-07-26 Thread karlh
Many thanks. will try as suggested K On Jul 26, 6:31 pm, Grok Lobster wrote: > http://econym.org.uk/gmap/basic19.htm > > On Jul 26, 8:59 am, karlh wrote: > > > > > Hi and thanks > > surely, as the map is displayed in an iframe, it should be enough to > > state the iframe's width and height in %

[Google Maps API v3] Re: Size of map in %s

2010-07-26 Thread Grok Lobster
http://econym.org.uk/gmap/basic19.htm On Jul 26, 8:59 am, karlh wrote: > Hi and thanks > surely, as the map is displayed in an iframe, it should be enough to > state the iframe's width and height in %s, instead of px?  whenever I > try %, the map opens in new FULLSIZE window > K > > On Jul 23

[Google Maps API v3] Re: Size of map in %s

2010-07-26 Thread karlh
Hi and thanks surely, as the map is displayed in an iframe, it should be enough to state the iframe's width and height in %s, instead of px? whenever I try %, the map opens in new FULLSIZE window K On Jul 23, 10:36 pm, Kesuke wrote: > I use something like this code on my map to handle resiz

Re: [Google Maps API v3] Re: how to close all InfoWindow before opening new infowindow?

2010-07-26 Thread sudhakar kanniyan
I figured out and fixed the issue . Thanks for your support. On Mon, Jul 26, 2010 at 10:35 AM, geocode...@gmail.com wrote: > On Jul 26, 8:05 am, sudhakar kanniyan > wrote: > > Actually as in the example it works in my website of google map. I do > have > > 10 html hyperlink outside of the googl

[Google Maps API v3] Re: how to close all InfoWindow before opening new infowindow?

2010-07-26 Thread geocode...@gmail.com
On Jul 26, 8:05 am, sudhakar kanniyan wrote: > Actually as in the example it works in my website of google map. I do have > 10 html hyperlink outside of the google map for each location. so when user > click on the location hyperlink , infowindows opens in the google map.  For > each location hype

[Google Maps API v3] Re: StreetView and InfoWindow

2010-07-26 Thread CSharp
Here's the link for the StreetView that I promised to include: http://www.mentoreng.com/testing/public/streets.html -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@goog

[Google Maps API v3] TransportDublin Google Maps Route Planner Github Project

2010-07-26 Thread paddy
TransportDublin Google Maps Route Planner Github Project Hi, I have been working on a Dublin Public Transport Route Planner. Powered by neo4j a nosql graph database with spatial features & offers implementations of common graph algorithms and google maps API v3 I have just uploaded the project to

Re: [Google Maps API v3] Re: how to close all InfoWindow before opening new infowindow?

2010-07-26 Thread sudhakar kanniyan
Actually as in the example it works in my website of google map. I do have 10 html hyperlink outside of the google map for each location. so when user click on the location hyperlink , infowindows opens in the google map. For each location hyperlink click an infowindow opens in google. My questi

[Google Maps API v3] Re: Clicking an onclick link in an infowindow also fires a map click

2010-07-26 Thread Joseph Elfelt
The bones of the context menu in this map now work fine. I stopped event propagation/bubbling as Susannah recommended. Click the map to drop (draggable) markers and draw a line. Right click a marker for the context menu. When you select a menu item (1) the corresponding function will execute, (2)

[Google Maps API v3] Re: Hi

2010-07-26 Thread Grok Lobster
Try GlobalMapper On Jul 25, 9:56 am, Dimuthu Thammitage wrote: > Can you please tell me how can I download a GeoTiff file of Liverpool city, > UK > > -- > Dimuthu Thammitage > MSc in Computer Science(Reading), BSc, MBCS -- You received this message because you are subscribed to the Google Group

[Google Maps API v3] Re: V3 Polyline Problems

2010-07-26 Thread Albert Sun
Thanks William, That is quite perceptive. Albert On Jul 23, 8:55 pm, William wrote: > On Jul 24, 3:10 am, Albert Sun wrote: > > > Looking at the San Francisco map, zoom in once towards the Golden Gate > > bridge. The path north of a certain point on the bridge disappears. > > your map has 3 ve

Re: [Google Maps API v3] Hi

2010-07-26 Thread Barry Hunter
Not with Google Maps (including the API) Not with Google Earth either (including the Pro version I beleive) Think will need to persue a non Google solution. On 25 July 2010 17:56, Dimuthu Thammitage wrote: > Can you please tell me how can I download a GeoTiff file of Liverpool city, > UK > > -

Re: [Google Maps API v3] Re: How to route via many waypoints?

2010-07-26 Thread Barry Hunter
On 25 July 2010 08:16, Mario wrote: > So, the proposal is to store MORE data points and draw polylines, > right? Also helps avoid the issue where the 'simulated' route doesn't match reality. Such as the tracked device following a brand new road that is not yet shown in base map; where the chosen

[Google Maps API v3] Re: How do i delete the marker that i selected after an overlay image comes out?

2010-07-26 Thread Marcelo
On Jul 26, 1:07 pm, Terry wrote: > > i tried that code. the marker never appear at all. i want the marker > to appear first then remove. You have to execute it at the right time, of course, but without a link to your map that's all the advice I can give you. -- Marcelo - http://maps.forum.nu --

[Google Maps API v3] Re: How do I make a single event handler for all markers?

2010-07-26 Thread Nianwei Liu
That would create an anonymous function for each marker as well, so no saving in terms of function counts. To actually share the function, do function createMarker(latlon,markerId){ var marker = new google.maps.Marker({ marker.myMarkerId - markerId; google.maps.event.addListener(marker,

[Google Maps API v3] Re: How do i delete the marker that i selected after an overlay image comes out?

2010-07-26 Thread Terry
On Jul 26, 6:48 pm, Marcelo wrote: > On Jul 26, 12:33 pm, Terry wrote: > > > I'm doing a search function whereby when i search for an area in my > > campus, a maker shows up to indicate where is the location that i have > > search for. After that, i would click on the marker and there would be

[Google Maps API v3] Re: How do i delete the marker that i selected after an overlay image comes out?

2010-07-26 Thread Marcelo
On Jul 26, 12:33 pm, Terry wrote: > I'm doing a search function whereby when i search for an area in my > campus, a maker shows up to indicate where is the location that i have > search for. After that, i would click on the marker and there would be > an overlay image that comes out. but my marker

[Google Maps API v3] How do i delete the marker that i selected after an overlay image comes out?

2010-07-26 Thread Terry
I'm doing a search function whereby when i search for an area in my campus, a maker shows up to indicate where is the location that i have search for. After that, i would click on the marker and there would be an overlay image that comes out. but my marker showing the location is still there. I wa

[Google Maps API v3] Re: MarkerCluster clickevent

2010-07-26 Thread Stefan Karlsson
When added a infoWindow I had problems finding what was the MVCObject to use with infoWindow.open(map, MVCObject). I made an implementation of setPosition on the InfoWindow instead and that works fine (infoWindow.open(map); infoWindow.setPosition(cluster.getCenter());). But is there any way to do t

[Google Maps API v3] Re: MarkerCluster clickevent

2010-07-26 Thread Stefan Karlsson
Now the clickevent works fine but I'd also look for "mouse over" and and "right click" event. What I am about to implement is clustered markers that with mouse over returns the titles of all the markers in that cluster. Click zoom in as default. Right click open a infowindow with information of th

[Google Maps API v3] Re: How do I make a single event handler for all markers?

2010-07-26 Thread zinigor
Oh, why didn't I think of that myself? Thank you very much, I think that this is exactly what I need! On Jul 26, 11:17 am, Marcelo wrote: > It's probably not too heavy and it is common practice, but if you > prefer it you can use a single named function, like: > > function createMarker(latlon,mar

[Google Maps API v3] Re: Just the Borders On Satellite View

2010-07-26 Thread Marcelo
On Jul 26, 7:59 am, Chris wrote: > Is there a way to display the borders of states/provinces within a > country without displaying all the roads, locations and place etc? Custom tiles? V2 examples: http://maps.forum.nu/gm_main.html?lat=37.649034&lon=-96.855469&z=4&mType=9 http://maps.forum.nu/g

[Google Maps API v3] Re: How do I make a single event handler for all markers?

2010-07-26 Thread Marcelo
It's probably not too heavy and it is common practice, but if you prefer it you can use a single named function, like: function createMarker(latlon,markerId) { var marker = new google.maps.Marker({position: latlon, ... etc. marker.myMarkerId = markerId; google.maps.event.addListener(marker,