predix-ui / predix-ui.github.io

http://predixdev.github.io/predix-ui
Other
14 stars 12 forks source link

px-map-layer-geojson loads file from wrong path #316

Closed davidrleonard closed 6 years ago

davidrleonard commented 6 years ago

Steps to reproduce:

  1. Switch to polymer2.0-preview branch and run bower install
  2. Open px-map-layer-geojson demo (http://localhost:8080/#/elements/map/px-map-layer-geojson)
  3. The GeoJSON isn't loaded and is a 404 in the console. It is not drawn on the map and clicking on the data property editor shows null.

stylesFromModule @ style-gather.html:96
stylesFromModules @ style-gather.html:65
stylesFromTemplate @ style-gather.html:121
processElementStyles @ element-mixin.html:419
_finalizeTemplate @ element-mixin.html:650
_initializeProperties @ element-mixin.html:591
_initializeProperties @ legacy-element-mixin.html:163
PropertyAccessors @ property-accessors.html:147
TemplateStamp @ template-stamp.html:121
PropertyEffects @ property-effects.html:1134
PolymerElement @ element-mixin.html:559
GestureEventListeners @ gesture-event-listeners.html:46
Dir @ dir-mixin.html:130
LegacyElement @ legacy-element-mixin.html:75
PolymerGenerated @ class.html:144
_stampTemplate @ template-stamp.html:425
_stampTemplate @ property-effects.html:2371
ready @ element-mixin.html:685
ready @ dir-mixin.html:139
ready @ legacy-element-mixin.html:184
ready @ class.html:216
_enableProperties @ property-accessors.html:546
connectedCallback @ element-mixin.html:669
connectedCallback @ dir-mixin.html:146
connectedCallback @ legacy-element-mixin.html:98
_attachDom @ element-mixin.html:729
_readyClients @ element-mixin.html:702
_flushClients @ property-effects.html:1542
_propertiesChanged @ property-effects.html:1670
_flushProperties @ property-accessors.html:564
ready @ property-effects.html:1632
ready @ element-mixin.html:688
ready @ dir-mixin.html:139
ready @ legacy-element-mixin.html:184
ready @ class.html:216
_enableProperties @ property-accessors.html:546
connectedCallback @ element-mixin.html:669
connectedCallback @ dir-mixin.html:146
connectedCallback @ legacy-element-mixin.html:98
window.Polymer._polymerFn @ polymer-fn.html:44
window.Polymer @ boot.html:29
(anonymous) @ px-view-header-demo.html:79
iron-request.html:330 GET http://localhost:8080/px-map-layer-geojson-data.json 404 (Not Found)

Browser: Chrome 64.0.3282.39 OS: OSX Sierra 10.12 Branch: polymer2.0-preview Commit tested: f1dde34

randyaskin commented 6 years ago

Should be fixed in v3.1.2 with [[importPath]].