I assume you are not getting any javascript errors? -- Ryan
On Thu, May 28, 2009 at 7:54 AM, Jenny Gavin-Wear < jenn...@fasttrackonline.co.uk> wrote: > > Umm .. no .. it's in there .. > > -----Original Message----- > From: Paul Ihrig [mailto:pih...@gmail.com] > Sent: 15 May 2009 13:55 > To: cf-talk > Subject: SPAM-MEDIUM Re: Google Map API > > > > map.addOverlay(marker); > missing ; > > maybe > > On Fri, May 15, 2009 at 8:04 AM, Jenny Gavin-Wear > <jenn...@fasttrackonline.co.uk> wrote: > > > > (message bumped with corrected subject ... help !!!) > > > > hi all .. trying to get a marker to show on the google map api ... > extract > > of code below .. > > > > anyone have any ideas as to why my marker isn't visible, please? > > > > tia, jenny > > > > <cfoutput> > > <script > > > src=" > http://maps.google.com/maps?file=api&v=2&key=#session.GoogleKey > > #" > > type="text/javascript"></script> > > <script type="text/javascript"> > > //<![CDATA[ > > function load() { > > if (GBrowserIsCompatible()) { > > var map = new GMap2(document.getElementById("map")); > > map.setCenter(new GLatLng(#dLatitude#, #dLongitude#), 14); > > map.addControl(new GSmallMapControl()); > > map.centerAndZoom(new GPoint(#dLatitude#, #dLongitude#), > 3); > > var point = new GPoint(#dLatitude#, #dLongitude#); > > var marker = new GMarker(point); > > map.addOverlay(marker) > > } > > } > > //]]> > > </script> > > </cfoutput> > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322868 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4