Sorry http://daviestrachan.zxq.net/maps/stationmap5.php
Regards Davie On Nov 3, 9:53 am, davie strachan <[email protected]> wrote: > Hi Am > Is this what you are looking for > huttp://daviestrachan.zxq.net/maps/stationmap5.php > try paris &london 25miles > I suggest you try my map changing the searchUrl to your own and if it > works modify it to suit your own requirements. > Your problem seems to be that you added parts to the origonal code > without understanding what each bit did > eg > switch(visibleMarkersCount){ > case 0: > // no markers have been created > // set map zoom and center accordingly - or just it leave it > as it > is > map.setZoom(8); > break; > case 1: > // a single marker has been created > // center on the marker but set a zoom level that's not fully > zoomed > in > map.setZoom(8); > break; > default: > // two or more markers have been created > // fit the map to the markers > map.fitBounds(bounds);*/ > > In your case there is always at least one XML marker (No Property > Found) > > Regards Davie > > On Nov 2, 9:21 pm, Rossko <[email protected]> wrote: > > > > > > > > > In your code you have > > map.fitBounds(zoom); > > You can't fitBounds to an integer number. > > You perhaps meant map.setZoom(zoom), but this would be a poor place to > > do that unconditionaly as it would mess up any previous fitBounds, if > > there happened to be one. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
