Closed thedig closed 7 years ago
@thedig thanks for publishing this issue. I however cannot reproduce this issue. Can you show me how you declare your marker and g-map?
Sure. We yield it in two parts in the component:
{{#let (hash
lat=lat
lng=lng
infoWindow=(hash content=name)
visible=true
)
as |marker|
}}
{{yield (hash
location-autocomplete=(component "g-autocomplete"
value=site.autocomplete
on-select=(action 'didUpdatePlace')
disabled=disabled
)
map-component=(component "g-maps"
mapType="hybrid"
disableDefaultUI=true
showScaleControl=false
showZoomControl=true
draggable=false
scrollwheel=false
name=name
lat=lat
lng=lng
zoom=15
markers=(array marker)
)
)}}
{{/let}}
For the record I attempted on a parallel repo to upgrade to 2.10.1 for comparison. Getting the exact same error this case. (this is an upgrade from a 2.8 lts app which had marker functionality working). I've also verified that the array
helper is returning an ember array.
@thedig I'm assuming your using ember-composable-helpers helpers for the array helper and ember-let for the let helper? It's really hard to know what data your passing around when I don't know what your helpers are doing.
update - this appears to be a breaking change from upgrading to ^2.10.0 / Glimmer2 (not a bug) - https://github.com/emberjs/ember.js/issues/14489
By design, Ember's hash
helper now returns an EmptyObject
instead of an Object
which lacking the prototype, has no call to hasOwnProperty
available
I'll be creating a work-around for now to pass in a regular POJO and awaiting if/when there's an update that accounts for the change.
Hi there,
I see there is the intention to move off this bower dependency, per issue: https://github.com/Matt-Jensen/ember-cli-g-maps/issues/66
In the meanwhile upgrading to ember 2.11 is now generating an error when attempting to add a marker to a map that is associated with the bower dependency. I'm posting here instead of in the bower package b/c issue #66 gives me the impression this might cease to be supported?
gmaps.js:
Trace: