google maps and dart ...

63 views
Skip to first unread message

nickfloros

unread,
Jan 13, 2014, 8:05:16 PM1/13/14
to w...@dartlang.org

Hi

 Been experimenting with google maps and the app works fine on the desktop. However when I deployed it on a mobile device, map panning does not work. Zooming works and you can pan while two fingers are in contact with the screen (?). Also if the map contains active pins you can not interact with them. 

 In order to ensure that the problem is not with my code I created few simple examples 
Please note that the same issues occurs using the maps Javascript API with dart:js.

Running Safari Web inspector on an iphone 5 I was able to get the following stack trace. (see  https://drive.google.com/file/d/0B-3548oLJZ-Td3BTd0lGR2kwVTA/edit?usp=sharing for more details) 

[Error] EventException "dispatchEvent@[native code]
bz
jb
call@[native code]
invoke (shadow_dom.debug.js, line 2598)
dispatchBubbling (shadow_dom.debug.js, line 2535)
dispatchEvent (shadow_dom.debug.js, line 2489)
dispatchOriginalEvent (shadow_dom.debug.js, line 2467)

Dart & SDK versions are
Dart Editor version 1.1.0.dev_05_06 (DEV)
Dart SDK version 1.1.0-dev.5.6

Any thoughts?

Thanks

Nick

Nick Floros

unread,
Jan 14, 2014, 11:03:41 AM1/14/14
to w...@dartlang.org
Using  http://mford-gae.appspot.com/map/ptestmap.html on Chrome with user agent set to IOS6 and touch events enabled I get the following errors :
DOMException {message"An attempt was made to use an object that is not, or is no longer, usable."name"InvalidStateError"code11stack"Error: An attempt was made to use an object that i…/packages/shadow_dom/shadow_dom.debug.js:2467:12)"INDEX_SIZE_ERR1…}
  1. code11
  2. message"An attempt was made to use an object that is not, or is no longer, usable."
  3. name"InvalidStateError"
  4. stack"Error: An attempt was made to use an object that is not, or is no longer, usable.↵ at bz (eval at <anonymous> (http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:54:2333), <anonymous>:128:322)↵ at $y.(anonymous function).L (eval at <anonymous> (http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:54:2333), <anonymous>:126:65)↵ at GeneratedWrapper.<anonymous> (http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:16:219)↵ at invoke (http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2587:28)↵ at dispatchBubbling (http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2535:12)↵ at dispatchEvent (http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2489:9)↵ at HTMLDivElement.dispatchOriginalEvent (http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2467:12)"
  5. __proto__DOMException
    1. ABORT_ERR20
    2. DATA_CLONE_ERR25
    3. DOMSTRING_SIZE_ERR2
    4. HIERARCHY_REQUEST_ERR3
    5. INDEX_SIZE_ERR1
    6. INUSE_ATTRIBUTE_ERR10
    7. INVALID_ACCESS_ERR15
    8. INVALID_CHARACTER_ERR5
    9. INVALID_MODIFICATION_ERR13
    10. INVALID_NODE_TYPE_ERR24
    11. INVALID_STATE_ERR11
    12. NAMESPACE_ERR14
    13. NETWORK_ERR19
    14. NOT_FOUND_ERR8
    15. NOT_SUPPORTED_ERR9
    16. NO_DATA_ALLOWED_ERR6
    17. NO_MODIFICATION_ALLOWED_ERR7
    18. QUOTA_EXCEEDED_ERR22
    19. SECURITY_ERR18
    20. SYNTAX_ERR12
    21. TIMEOUT_ERR23
    22. TYPE_MISMATCH_ERR17
    23. URL_MISMATCH_ERR21
    24. VALIDATION_ERR16
    25. WRONG_DOCUMENT_ERR4
    26. ___dart_dispatch_record_ZxYxX_0_Object
    27. constructorfunction DOMException() { [native code] }
    28. toStringfunction toString() { [native code] }
    29. __proto__d
"Error: An attempt was made to use an object that is not, or is no longer, usable. at bz (eval at <anonymous> (http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:54:2333), <anonymous>:128:322) at $y.(anonymous function).L (eval at <anonymous> (http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:54:2333), <anonymous>:126:65) at GeneratedWrapper.<anonymous> (http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:16:219) at invoke (http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2587:28) at dispatchBubbling (http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2535:12) at dispatchEvent (http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2489:9) at HTMLDivElement.dispatchOriginalEvent (http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2467:12)"






--
You received this message because you are subscribed to the Google Groups "Dart Web Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web+uns...@dartlang.org.
Visit this group at http://groups.google.com/a/dartlang.org/group/web/.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/web/c5feabcb-a8f5-41f9-94e0-82ed1cd0db69%40dartlang.org.

Reply all
Reply to author
Forward
0 new messages