Fri, 05/19/2017 - 05:03
#1
MapQuest Routing Plugin for Leaflet Compatibility with Leaflet v1.0
Hello,
in the release notes for the leaflet plugin it is stated that "v2.2 should be fully compatible with the leaflet library v1.0". However, non of the examples for the MapQuest Routing Plugin are working with leaflet 1.0. Chrome always gives "Uncaught TypeError: Cannot read property '_leaflet_events' of undefined" when adding the routeLayer instance. Any advice on this????
Brian,
thank you for your response. I've tested it again with Chrome (v58.0.3029.110), FF (v53.0) and IE 11. I used the "Try It Now" sample page in the documentation: https://developer.mapquest.com/documentation/samples/leaflet/v2.2/routing/single-line/. I changed the leaflet script tag from 0.7.7 to 1.0.0. The example does work for in FF for both versions!! In Chrome it is working for 0.7.7 but gives the error stated above for version 1.0.0. For IE the example is neither working for version 1.0.0 nor does it for 0.7.7. It gives "Unknown touch event type" in mq-routing.js for version 0.7.7 and the same error as Chrome for version 1.0.0.
I am getting this issue. May I know whta is the fix for this?
What browser and Leaflet version are you using?
MapQuest.js is the current JavaScript mapping SDK. Is there a reason you're not using this for any new development?