Comments (6)
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.
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.
Quite strange. What is the User-Agent your iPhone is using ?
from dart-google-maps.
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.
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.
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…}
- code: 11
- message: "An attempt was made to use an object that is not, or is no
longer, usable." - name: "InvalidStateError"
- 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
)" - proto: DOMException
- ABORT_ERR: 20
- DATA_CLONE_ERR: 25
- DOMSTRING_SIZE_ERR: 2
- HIERARCHY_REQUEST_ERR: 3
- INDEX_SIZE_ERR: 1
- INUSE_ATTRIBUTE_ERR: 10
- INVALID_ACCESS_ERR: 15
- INVALID_CHARACTER_ERR: 5
- INVALID_MODIFICATION_ERR: 13
- INVALID_NODE_TYPE_ERR: 24
- INVALID_STATE_ERR: 11
- NAMESPACE_ERR: 14
- NETWORK_ERR: 19
- NOT_FOUND_ERR: 8
- NOT_SUPPORTED_ERR: 9
- NO_DATA_ALLOWED_ERR: 6
- NO_MODIFICATION_ALLOWED_ERR: 7
- QUOTA_EXCEEDED_ERR: 22
- SECURITY_ERR: 18
- SYNTAX_ERR: 12
- TIMEOUT_ERR: 23
- TYPE_MISMATCH_ERR: 17
- URL_MISMATCH_ERR: 21
- VALIDATION_ERR: 16
- WRONG_DOCUMENT_ERR: 4
- __dart_dispatch_record_ZxYxX_0: Object
- constructor: function DOMException() { [native code] }
- toString: function toString() { [native code] }
- 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)
- Heatmap HOT 3
- Move Camera not working HOT 7
- Remove Polyline from Map HOT 2
- Map view has Infinite Width HOT 1
- Fit bounds doesn't fit properly HOT 4
- Encoding.decodePath throws when running with webdev serve HOT 3
- How to run the demo? HOT 1
- Drawing a layer over part of the map HOT 1
- getPanorama throw a exception when consult not available location for streetview HOT 8
- Multiple Dependency Issue HOT 1
- Google Maps JavaScript API has a new loader, should this lib use it (or expose its API)? HOT 2
- Map not shown in TabBarView after upgrading from flutter version 3.3.10 to 3.7.0 or newer HOT 1
- Using legacy MapLabel JS from flutter application HOT 2
- Migrate to `package:web` HOT 11
- Error with > 7.00 version : Uncaught (in promise) TypeError: Illegal constructor HOT 1
- Finish migrating to wasm-safe JS-interop HOT 18
- Map is correctly displayed but I cannot pan, zoom or anything by default. Is this expected? HOT 1
- Using a GMap from within a material Widget tree? HOT 1
- Implement github actions? HOT 1
- [google_maps] Add AdvancedMarkerElement to resolve deprecation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-google-maps.