Maybe you're trying to load ExtMaptypeControl and the API in the wrong order.
Firstly the API must be loaded, then the library, otherwise TrafficControl is undefined. If this hint doesn't solve the problem, a link to your non working map would be a good idea ( and according to the posting guide lines). On Sep 11, 5:01 pm, mark <[email protected]> wrote: > Pil > Thanks for the reply. Everytime the JS runs to load Google maps, the > program crashes with this error: > Microsoft JScript runtime error: 'TrafficControl' is undefined. > I've updated the extmaptypecontrol.js to v1.4 and have included a > map.addControl(new TrafficControl()); statement. There is a <script > src="~/Scripts/extmaptypecontrol.js" statement at the start of the JS > block to declare usage of the external JS file containing the > ExtMapTypeControl code. > I have no idea what the problem is; please help. > Cheers, > Mark. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
