chrismayer on master
Minor style enhancements for fo… Merge pull request #165 from ch… (compare)
chrismayer on master
Fix position of attribution Merge pull request #164 from Ja… (compare)
chrismayer on master
Add WFS docs Make style not mandatory Make mandatory properties fat and 7 more (compare)
Geocoder
Unit test specs for methods
(e.g. querySelections()
): quite some async stuff going on: setTimeout()
, Promise
and fetch()
combined (to realize "search while typing"). Trying Sinon
fake timers
and fake xhr
but no success...
Karma
, Mocha
, Chai
, Sinon
, vue/test-utils
: finding my way a bit...https://vue-test-utils.vuejs.org/ is helpful..spec
file (like in Weguemain.js
): import Vue from 'vue';
import Vuetify from 'vuetify';
Vue.use(Vuetify);
find()
) popup...
.spec
. and 2) not being able to step-wise debug/having breakpoints in the test code. Looks like both can be solved: 1) by using an additional jsdom
engine (next to Chromium) and 2) looks there is mocha --inspect-brk
. So chugging along, other issue is how to provide input text to the Geocoder Vuetify Combobox/Select widget to have real BDD tests as recommended.
README.md
under test/
with tips and tricks, e.g.:
content
props-value as regular HTML. For the InfoClickWin one would need a specialized Vue Template section to render attributeData
coming from the clicked Feature. For later: Vue slots
could help to allow implementations to have a customized template/styling.
"wgu-feature-info-window":
under modules
with props
: layerId
(name of the Layer) and the attribute names of the title and image (imageProp
) within Features of that Layer. It should listen to Map events and when a Feature selected display its info (title, image) but not sure if/how that works. This approach looks more loosely coupled than InfoClickWin
, so quite versatile, but also unclear to me how to enable...
FeatureInfoWindow
with success. Code in local branch https://github.com/justb4/wegue/tree/featureinfowindow. Modified 3 files: WguAppTemplate.vue
, FeatureInfoWindow.vue
and app-conf.json
. Could actually use the new OGC API Features (aka WFS3) using pygeoapi demo: https://demo.pygeoapi.io/master/collections/dutch_windmills/. The source is actually a WFS v2 proxied with pygeoapi
. But the "Windmills featureset" contains both image links and "more info" attributes so was a good fit. The essence is that FeatureInfoWindow
needs to be loaded and configured. Don't know if I followed the right pattern for this though...Result is nice, even the "More Info.." link works.
Vuex
there. Plus there is a need for a more "user-friendly/media-rich" InfoWin-type like currently FeatureInfoWindow. For now via #107 I hope to have a PR for FeatureInfoWindow
somewhere today.
Agree on the general strategy. Having a GIS-Table component (like InfoClickWin) and a media-rich (like FeatureInfoWindow) and extendable (by slots) Info component would be good.
Regarding a more versatile GIS-Table component: I had a customer project, where I used the Vuetify Datatable. Worked quite well. But no need to use Vuex for that. I would like to keep things simple. Redux (or similar) brings a higher complexity IMHO, which I want to keep at a low level for Wegue.
Maybe we can re-use some of the customer code for the data-table.
Ok, looks good. Vuex is not a must, reminded me of the GeoExt FeatureStore
:-), keeping things simple is always good!
npm
commands work and the website can be run. Both fascinating and a bit scary. However I still prefer to stay on my local machine.
Hi all,
I hope you're doing well. I just reviewed and merged #124 and #126. Thanks @justb4!
I am quite busy and therefore it was and will be quite quite from my side. I have some half-ready work-in-progess things like loading config from the app-folder and a Vuetify upgrade to v2. But no idea when I can finish them.
#105 (WFS support) seems IMHO ready and would be a nice enhancement.
vuetify-v1-legacy
in order to have a maintenance branch for "old" versions, since not everybody (including me) can upgrade existing apps immediately.