On Apr 19, 11:12 am, mkeblx <[email protected]> wrote: > I want to use a custom map and add a polyline over it but am getting > an error "c is undefined" upon trying to add the polyline. > > You can see a demo here:http://prjctspc.com/iata/county_bnds.html
I can't get that page to do anything usefull in IE. > > First click one of the "add x map" buttons and then the add route > button which will trigger the error. With the normal map it works > fine. > > I've actually got this working before on another project but don't > know why it isn't working in this instance. There is an issue with polylines and custom maps if the custom map type doesn't support enough zoom levels (I think the calculations are done at zoom level 17). See Mike Williams' tutorial: http://econym.org.uk/gmap/custommap.htm + Potential Pitfalls + Some API features, such as polylines and ground overlays, perform their calculations at zoom level 17, rather + than at the max zoom level of the map type. These features will fail if the GProjection() of the map type ahs less + than 18 zoom levels. -- Larry -- Larry > > Thanks. > > -- > 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 > athttp://groups.google.com/group/google-maps-api?hl=en. -- 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.
