Re: [Google Maps API v3] Re: Custom Icons Problem

2011-12-10 Thread IR HM
Larry, I've got it, finally ! Thank you so much for your time and, patience. Kind regards Chris On 10 December 2011 15:32, geocode...@gmail.com wrote: > On Dec 10, 7:20 am, IR HM wrote: > > Hi Larry, forgive me for not grasping this particulalry well. > > > > But isn't this line 'function cre

[Google Maps API v3] Re: Custom Icons Problem

2011-12-10 Thread geocode...@gmail.com
On Dec 10, 7:20 am, IR HM wrote: > Hi Larry, forgive me for not grasping this particulalry well. > > But isn't this line 'function createMarker2(latlng, sitedescription, > sitetype) {' setting the arguments, which I then use here? Yes. But look at the place in your code where you _call_ the func

Re: [Google Maps API v3] Re: Custom Icons Problem

2011-12-10 Thread IR HM
Hi Larry, forgive me for not grasping this particulalry well. But isn't this line 'function createMarker2(latlng, sitedescription, sitetype) {' setting the arguments, which I then use here? var html2 = "" + sitedescription + " "; var icon = customIcons[sitetype] || {}; var marker2 = new google.ma

[Google Maps API v3] Re: Custom Icons Problem

2011-12-09 Thread geocode...@gmail.com
On Dec 9, 6:27 am, IR HM wrote: > Hi Larry,many thanks for replying to my post. > > I'm a little new to this, so could you perhaps elaborate please, as I'm a > little unsure as to what you mean. If you write a javascript function foo(a,b,c) { do stuff with a,b,c } and call it with 2 arguments, yo

Re: [Google Maps API v3] Re: Custom Icons Problem

2011-12-09 Thread IR HM
Hi Davie, Many thanks for the code, very clever! I'm going to try and see whether I can make the changes without changing my php scripts, but what you posted is certainly very interesting. Kind regards Chris On 8 December 2011 11:51, davie wrote: > Hi > > The php file which generates the XML

Re: [Google Maps API v3] Re: Custom Icons Problem

2011-12-09 Thread IR HM
Hi Larry,many thanks for replying to my post. I'm a little new to this, so could you perhaps elaborate please, as I'm a little unsure as to what you mean. Kind regards Chris On 7 December 2011 19:57, geocode...@gmail.com wrote: > On Dec 7, 7:22 am, IR HM wrote: > > I wonder whether someone m

[Google Maps API v3] Re: Custom Icons Problem

2011-12-08 Thread davie
Hi The php file which generates the XML from MySQL uses the function mysql_num_rows() This is used to modify the XML depending on whiter the search provides results or not Here is my code (obviously your data fields are different from mine) // header("Content-type: text/xml"); if (mysql_num_ro

Re: [Google Maps API v3] Re: Custom Icons Problem

2011-12-07 Thread IR HM
Hi Davie, many thanks for taking the time to reply to my post. This looks like it will do the trick. However I've implemented it and updated my page, but unfortunately I'm still getting the default google icon. Any ideas please? Kind regards Chris On 7 December 2011 16:25, davie wrote: > Hi

[Google Maps API v3] Re: Custom Icons Problem

2011-12-07 Thread geocode...@gmail.com
On Dec 7, 7:22 am, IR HM wrote: > I wonder whether someone may be able to help me please. > > I'm trying to use custom icons on > this > page > but I've come up against a problem. The page uses two php files to retrieve > it's data and

[Google Maps API v3] Re: Custom Icons Problem

2011-12-07 Thread davie
Hi See my map http://daviestrachan.zxq.net/maps/stationmap.php If you type in Paris with a radius of 25 miles the marker locates in Paris where there are no records with ! marker if you type in London any radius there are records and you get railway marker Is this somthing like you want? Regards Da