On Oct 13, 11:28 pm, "[email protected]" <[email protected]> wrote: > On Oct 13, 8:30 pm, Brian Doyle <[email protected]> wrote: > > > > > I'm attempting to draw some polylines around an area and it's working > > for > > most part but there seems to be throwing a JS error when I use a > > certain > > set of points. Below is the code I'm using that is causing a JS > > error: > > > var map; > > if (GBrowserIsCompatible()) { > > map = new GMap2(document.getElementById("nearby_map")); > > map.setCenter(new GLatLng(39.7515127579915,104.998698303587),12); > > map.addOverlay(new GPolyline.fromEncoded({points: > > 'surqfjv{_sxfgglccbhcmdtdggakkns...@wg`iokjote@np@', > > levels: "BBBBBBBBBBBB",zoomFactor: 32,numLevels: 4,color: > > "#3300FF",weight: > > 3,opacity: 40}));map.addControl(new GSmallMapControl());} > > This doesn't look valid: > opacity: 40 > > But I doubt that is the problem...
How did you create the encoded points string? If I run it through Mark McClure's decoder, then re-encode it, I get a slightly shorter string and no error: http://www.geocodezip.com/GenericMapBrowser.asp?filename=BrianDoyleG.xml -- Larry > > > > > > > <<<<<<<<<<<< > > > And here is the JS error that I see in FF 3.5.3: > > > this.j[e] is > > undefinedhttp://maps.gstatic.com/intl/en_us/mapfiles/178b/maps2.api/main.js > > Line 316 > > > It would appear that it has something to do with the points value I'm > > passing to it: 'surqfjv{_sxfgglccbhcmdtdggakkns...@wg`iokjote@np@' > > I'm not > > certain if there is something wrong with the points value or there is > > something amiss in the main.js file. > > > I'm currently tasked with converting the maps on our website to > > Google > > maps. Currently our mapping implementation does work with the exact > > same > > points as you see here: http://www.guidespot.com/neighborhood/1851 > > > Any help would be appreciated. Thanks. > > Do you have a link to a map that shows the problem? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en -~----------~----~----~----~------~----~------~--~---
