Giter Site home page Giter Site logo

Comments (6)

a14n avatar a14n commented on August 21, 2024

I think you will have the same problem with the Simple Map JS sample. I just tested with this example ; depending on the user-agent used the handling of touch events may work or not.
This seems to be related to the JS api and not to this dart wrapper.

from dart-google-maps.

nickfloros avatar nickfloros commented on August 21, 2024

I totally agree that this does not relate to your wrapper ..

I was only interested in getting somebody else view ... I have been bashing
my head with this problem for 4 days now !

On my iPhone I have no problem with native JS implementation.. Only
anything that involves Dart generated versions ...

On Tue, Jan 14, 2014 at 12:56 PM, Alexandre Ardhuin <
[email protected]> wrote:

I think you will have the same problem with the Simple Map JS samplehttps://google-developers.appspot.com/maps/documentation/javascript/examples/full/map-simple.
I just tested with this example ; depending on the user-agent used the
handling of touch events may work or not.
This seems to be related to the JS api and not to this dart wrapper.


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-32262144
.

from dart-google-maps.

a14n avatar a14n commented on August 21, 2024

Quite strange. What is the User-Agent your iPhone is using ?

from dart-google-maps.

nickfloros avatar nickfloros commented on August 21, 2024

from safari web insespector navigator.userAgent

"Mozilla/5.0 (iPhone; CPU iPhone OS 7_0_4 like Mac OS X)
AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a
Safari/9537.53"

On Tue, Jan 14, 2014 at 2:13 PM, Alexandre Ardhuin <[email protected]

wrote:

Quite strange. What is the User-Agent your iPhone is using ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-32267237
.

from dart-google-maps.

a14n avatar a14n commented on August 21, 2024

I made a test in Chrome by overriding User-Agent with your value and enabling touch event.
On both version (js only and dart with dart2js) the panning works (FWTW with the default User-Agent and the touch event the panning was not working)

from dart-google-maps.

nickfloros avatar nickfloros commented on August 21, 2024

I have a simple polymer example at
http://mford-gae.appspot.com/map/ptestmap.html

Which works fine on Chrome. I then enabled Touch events and set the user
agent to IOS6

Then got the following error ...

DOMException {message: "An attempt was made to use an object that is not,
or is no longer, usable.", name: "InvalidStateError", code: 11, stack: "Error:
An attempt was made to use an object that
i…/packages/shadow_dom/shadow_dom.debug.js:2467:12)", INDEX_SIZE_ERR: 1…}

  1. code: 11
  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 (
    http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:54:2333),
    :128:322)↵ at $y.(anonymous function).L (eval at (
    http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:54:2333),
    :126:65)↵ at GeneratedWrapper. (
    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_ERR: 20
    2. DATA_CLONE_ERR: 25
    3. DOMSTRING_SIZE_ERR: 2
    4. HIERARCHY_REQUEST_ERR: 3
    5. INDEX_SIZE_ERR: 1
    6. INUSE_ATTRIBUTE_ERR: 10
    7. INVALID_ACCESS_ERR: 15
    8. INVALID_CHARACTER_ERR: 5
    9. INVALID_MODIFICATION_ERR: 13
    10. INVALID_NODE_TYPE_ERR: 24
    11. INVALID_STATE_ERR: 11
    12. NAMESPACE_ERR: 14
    13. NETWORK_ERR: 19
    14. NOT_FOUND_ERR: 8
    15. NOT_SUPPORTED_ERR: 9
    16. NO_DATA_ALLOWED_ERR: 6
    17. NO_MODIFICATION_ALLOWED_ERR: 7
    18. QUOTA_EXCEEDED_ERR: 22
    19. SECURITY_ERR: 18
    20. SYNTAX_ERR: 12
    21. TIMEOUT_ERR: 23
    22. TYPE_MISMATCH_ERR: 17
    23. URL_MISMATCH_ERR: 21
    24. VALIDATION_ERR: 16
    25. WRONG_DOCUMENT_ERR: 4
    26. __dart_dispatch_record_ZxYxX_0: Object
    27. constructor: function DOMException() { [native code] }
    28. toString: function 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 (
http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:54:2333http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js),
:128:322) at $y.(anonymous function).L (eval at (
http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:54:2333http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js),
:126:65) at GeneratedWrapper. (
http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:16:219http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js)
at invoke (
http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2587:28http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js)
at dispatchBubbling (
http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2535:12http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js)
at dispatchEvent (
http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2489:9http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js)
at HTMLDivElement.dispatchOriginalEvent (
http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2467:12http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js
)"

While on safari web inspector I get ..

[Error] EventException "dispatchEvent@[native code]
bz
jb
call@[native code]
http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js:16:219
invoke@
http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2587:32
dispatchBubbling@
http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2535:18
dispatchEvent@
http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2489:25
dispatchOriginalEvent@
http://mford-gae.appspot.com/map/packages/shadow_dom/shadow_dom.debug.js:2467:25
"
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)

Hmm confused ..

thanks

Nick

from dart-google-maps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.