-
Notifications
You must be signed in to change notification settings - Fork 20
feat(#257): Add geopoint with maps and placement-map appearances #536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
latin-panda
wants to merge
26
commits into
main
Choose a base branch
from
add-geopoint-with-map
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
3ba9051
Initial input setup and loading saved feature
latin-panda 43df2b4
Adds watch to current location function
latin-panda 76b89de
Merge branch 'main' of https://github.com/getodk/web-forms into add-g…
latin-panda c5c479a
maps and placement-maps interactions
latin-panda 8052234
Nicer code
latin-panda a0cd16e
fixes changeset
latin-panda 3734ee0
rename function
latin-panda f1858ee
Extract code a new mapFeatures module
latin-panda 74f5bdf
adds debounce to watch location
latin-panda ba7efef
feedback and unit test
latin-panda 4991c04
fixes button style
latin-panda 5a52825
updates save button icon
latin-panda 50fa15e
improves test form for geopoint with maps
latin-panda 9ac956c
fixes styles in mobile
latin-panda 851a735
Adds toast message
latin-panda 4045789
shows overlay for location mode when there's an error
latin-panda 3feca4f
should not center on subsequent location captures - on watch location
latin-panda cc522c3
feedback labels for desktop and mobile
latin-panda 21f35f4
Fixes view center experience
latin-panda 639ab42
Fixes view center experience
latin-panda d41ead9
Update layer while animating
latin-panda fc0134b
test coverage
latin-panda 8b819f9
updates feature matrix
latin-panda f4b0cdc
updates visual test
latin-panda 3e9b267
Don't center if feature is in view and not displaying properties
latin-panda f85e723
Don't center if feature is in view and not displaying properties
latin-panda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@getodk/web-forms': minor | ||
| --- | ||
|
|
||
| Adds support for Geopoint with "maps" and "placement-map" appearances. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| <?xml version="1.0"?> | ||
| <h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" | ||
| xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
| xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" | ||
| xmlns:odk="http://www.opendatakit.org/xforms"> | ||
| <h:head> | ||
| <h:title>Geopoint</h:title> | ||
| <model odk:xforms-version="1.0.0"> | ||
| <itext> | ||
| <translation lang="English (en)"> | ||
| <text id="/data/facility_gps:label"> | ||
| <value>Where are you?</value> | ||
| </text> | ||
| <text id="/data/facility_age:label"> | ||
| <value>Your age</value> | ||
| </text> | ||
| <text id="/data/facility_gps_2:label"> | ||
| <value>Where are you again?</value> | ||
| </text> | ||
| </translation> | ||
| <translation lang="French (fr)"> | ||
| <text id="/data/facility_gps:label"> | ||
| <value>Où es-tu?</value> | ||
| </text> | ||
| <text id="/data/facility_age:label"> | ||
| <value>Ton âge</value> | ||
| </text> | ||
| <text id="/data/facility_gps_2:label"> | ||
| <value>Où es-tu encore?</value> | ||
| </text> | ||
| </translation> | ||
| </itext> | ||
| <instance> | ||
| <data id="1_geopoint_relevant_disabled" version="2025020401"> | ||
| <facility_gps>40.7128 -74.0060 100 5</facility_gps> | ||
| <facility_age/> | ||
| <facility_gps_2/> | ||
| <facility_gps_placement>40.7128 -74.0060 100 5</facility_gps_placement> | ||
| <facility_age_placement/> | ||
| <facility_gps_2_placement/> | ||
| <meta> | ||
| <instanceID/> | ||
| </meta> | ||
| </data> | ||
| </instance> | ||
| <bind nodeset="/data/facility_gps" type="geopoint" required="true()"/> | ||
| <bind nodeset="/data/facility_age" type="int"/> | ||
| <bind nodeset="/data/facility_gps_2" type="geopoint" relevant=" /data/facility_age > 0" readonly=" /data/facility_age > 5"/> | ||
| <bind nodeset="/data/facility_gps_placement" type="geopoint" required="true()"/> | ||
| <bind nodeset="/data/facility_age_placement" type="int"/> | ||
| <bind nodeset="/data/facility_gps_2_placement" type="geopoint" relevant=" /data/facility_age > 0" readonly=" /data/facility_age > 5"/> | ||
| <bind nodeset="/data/meta/instanceID" type="string" readonly="true()" jr:preload="uid"/> | ||
| </model> | ||
| </h:head> | ||
| <h:body> | ||
| <input ref="/data/facility_gps" appearance="maps"> | ||
| <label ref="jr:itext('/data/facility_gps:label')"/> | ||
| </input> | ||
| <input ref="/data/facility_age"> | ||
| <label ref="jr:itext('/data/facility_age:label')"/> | ||
| </input> | ||
| <input ref="/data/facility_gps_2" appearance="maps"> | ||
| <label ref="jr:itext('/data/facility_gps_2:label')"/> | ||
| </input> | ||
| <input ref="/data/facility_gps_placement" appearance="placement-map"> | ||
| <label ref="jr:itext('/data/facility_gps:label')"/> | ||
| </input> | ||
| <input ref="/data/facility_age_placement"> | ||
| <label ref="jr:itext('/data/facility_age:label')"/> | ||
| </input> | ||
| <input ref="/data/facility_gps_2_placement" appearance="placement-map"> | ||
| <label ref="jr:itext('/data/facility_gps_2:label')"/> | ||
| </input> | ||
| </h:body> | ||
| </h:html> | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.