Map view customization in Tables

Hi all,
I am hoping to use Tables to verify some point locations and add attribute information about those locations out in the field, but am hitting two stumbling blocks.

First, I want the point markers to change color based on one of the columns, and although I can make the "Table Color Rules" and "Status Column Color Rules" work properly, I haven't been able to get the "Color Rule for Map" setting to change anything on the map no matter what I do.

Second, I was hoping to show the device's current location on the map and can't figure out any way to set that!

I have only found the html and js files to edit the list views but don't know where the files are that work with the map view. I should only have this one application on Tables, so it wouldn't be a problem if I have to edit files that would be used by other forms. I would really appreciate any advice.

Thanks,
Julie

Good questions!

First, which version of Tables are you using? Is it from one of the files
available on the ODK website? This will help us track down the issue.

Surprisingly, there isn't currently a "show your location on the map"
function on the map view, although it is a good request and one we will
likely include in the future. A possible workaround would be to add a row
with the current location and try to see which is the new point, although
admittedly that isn't ideal and could be downright impossible with lots of
points.

The map view screen is made up of two screen components: 1) the map itself,
which doesn't have an associated file, and 2) the HTML view. The HTML view
is the same sort of file as the list view. If you go to table settings
(which you can access several ways, one of which is clicking the gear icon
in the upper right corner when looking at the map view) you should be able
to select the view type of map view and then see an associated map file,
which will tell you the location of the file that is being rendered.

If you can't find the file, let us know, and we can try to figure out where
you can look with whichever version of the code you are using.

ยทยทยท On Tue, Jan 27, 2015 at 10:09 AM, wrote:

Hi all,
I am hoping to use Tables to verify some point locations and add attribute
information about those locations out in the field, but am hitting two
stumbling blocks.

First, I want the point markers to change color based on one of the
columns, and although I can make the "Table Color Rules" and "Status Column
Color Rules" work properly, I haven't been able to get the "Color Rule for
Map" setting to change anything on the map no matter what I do.

Second, I was hoping to show the device's current location on the map and
can't figure out any way to set that!

I have only found the html and js files to edit the list views but don't
know where the files are that work with the map view. I should only have
this one application on Tables, so it wouldn't be a problem if I have to
edit files that would be used by other forms. I would really appreciate any
advice.

Thanks,
Julie

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 Like

Thank you! I am using ODK Tables 2.0 (rev 122), downloaded from the ODK
website within the last few weeks.

Under the table settings page the only Map View settings I see are "Map
List View File" and "Color Rule for Map". There is no "Map View File" that
I can find.

Unfortunately adding a data point for current location won't work, because
the field staff will be moving around and I want them to be able to compare
their location to the existing points. If anyone has any suggestions about
accomplishing that I would be forever grateful!
Julie

ยทยทยท On Tuesday, January 27, 2015 at 10:28:10 AM UTC-8, Sam Sudar wrote: > > Good questions! > > First, which version of Tables are you using? Is it from one of the files > available on the ODK website? This will help us track down the issue. > > Surprisingly, there isn't currently a "show your location on the map" > function on the map view, although it is a good request and one we will > likely include in the future. A possible workaround would be to add a row > with the current location and try to see which is the new point, although > admittedly that isn't ideal and could be downright impossible with lots of > points. > > The map view screen is made up of two screen components: 1) the map > itself, which doesn't have an associated file, and 2) the HTML view. The > HTML view is the same sort of file as the list view. If you go to table > settings (which you can access several ways, one of which is clicking the > gear icon in the upper right corner when looking at the map view) you > should be able to select the view type of map view and then see an > associated map file, which will tell you the location of the file that is > being rendered. > > If you can't find the file, let us know, and we can try to figure out > where you can look with whichever version of the code you are using. > > > > On Tue, Jan 27, 2015 at 10:09 AM, <julie....@gmail.com > wrote: > >> Hi all, >> I am hoping to use Tables to verify some point locations and add >> attribute information about those locations out in the field, but am >> hitting two stumbling blocks. >> >> First, I want the point markers to change color based on one of the >> columns, and although I can make the "Table Color Rules" and "Status Column >> Color Rules" work properly, I haven't been able to get the "Color Rule for >> Map" setting to change anything on the map no matter what I do. >> >> Second, I was hoping to show the device's current location on the map and >> can't figure out any way to set that! >> >> I have only found the html and js files to edit the list views but don't >> know where the files are that work with the map view. I should only have >> this one application on Tables, so it wouldn't be a problem if I have to >> edit files that would be used by other forms. I would really appreciate any >> advice. >> >> Thanks, >> Julie >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > >

Map List View File is the correct one. You're essentially seeing a list of
all the items in the database, which we call a "list view".

When are you hoping to deploy this?

ยทยทยท On Tue, Jan 27, 2015 at 1:53 PM, julie mason wrote:

Thank you! I am using ODK Tables 2.0 (rev 122), downloaded from the ODK
website within the last few weeks.

Under the table settings page the only Map View settings I see are "Map
List View File" and "Color Rule for Map". There is no "Map View File" that
I can find.

Unfortunately adding a data point for current location won't work, because
the field staff will be moving around and I want them to be able to compare
their location to the existing points. If anyone has any suggestions about
accomplishing that I would be forever grateful!
Julie

On Tuesday, January 27, 2015 at 10:28:10 AM UTC-8, Sam Sudar wrote:

Good questions!

First, which version of Tables are you using? Is it from one of the files
available on the ODK website? This will help us track down the issue.

Surprisingly, there isn't currently a "show your location on the map"
function on the map view, although it is a good request and one we will
likely include in the future. A possible workaround would be to add a row
with the current location and try to see which is the new point, although
admittedly that isn't ideal and could be downright impossible with lots of
points.

The map view screen is made up of two screen components: 1) the map
itself, which doesn't have an associated file, and 2) the HTML view. The
HTML view is the same sort of file as the list view. If you go to table
settings (which you can access several ways, one of which is clicking the
gear icon in the upper right corner when looking at the map view) you
should be able to select the view type of map view and then see an
associated map file, which will tell you the location of the file that is
being rendered.

If you can't find the file, let us know, and we can try to figure out
where you can look with whichever version of the code you are using.

On Tue, Jan 27, 2015 at 10:09 AM, julie....@gmail.com wrote:

Hi all,
I am hoping to use Tables to verify some point locations and add
attribute information about those locations out in the field, but am
hitting two stumbling blocks.

First, I want the point markers to change color based on one of the
columns, and although I can make the "Table Color Rules" and "Status Column
Color Rules" work properly, I haven't been able to get the "Color Rule for
Map" setting to change anything on the map no matter what I do.

Second, I was hoping to show the device's current location on the map
and can't figure out any way to set that!

I have only found the html and js files to edit the list views but don't
know where the files are that work with the map view. I should only have
this one application on Tables, so it wouldn't be a problem if I have to
edit files that would be used by other forms. I would really appreciate any
advice.

Thanks,
Julie

--
You received this message because you are subscribed to the Google
Groups "ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 Like

I was hoping to deploy something within the next few weeks, but have a
similar project in the works probably for around July. Is there a timeline
for adding the current location feature? Are there also any plans to add
the 'map' and 'placement-map' appearance types to Survey?

I have successfully edited the list view, but I haven't found any way to
change the color of the points on the map itself. I know it is possible (it
was done in this
example: http://courses.cs.washington.edu/courses/cse490d/14wi/ClassMaterials/CCEI.pdf)
but I cannot get it to work for me.

Thanks for all your help,
Julie

ยทยทยท On Wednesday, January 28, 2015 at 7:38:36 AM UTC-8, Sam Sudar wrote: > > Map List View File is the correct one. You're essentially seeing a list of > all the items in the database, which we call a "list view". > > When are you hoping to deploy this? > > On Tue, Jan 27, 2015 at 1:53 PM, julie mason <julie....@gmail.com > wrote: > >> Thank you! I am using ODK Tables 2.0 (rev 122), downloaded from the ODK >> website within the last few weeks. >> >> Under the table settings page the only Map View settings I see are "Map >> List View File" and "Color Rule for Map". There is no "Map View File" that >> I can find. >> >> Unfortunately adding a data point for current location won't work, >> because the field staff will be moving around and I want them to be able to >> compare their location to the existing points. If anyone has any >> suggestions about accomplishing that I would be forever grateful! >> Julie >> >> >> >> On Tuesday, January 27, 2015 at 10:28:10 AM UTC-8, Sam Sudar wrote: >>> >>> Good questions! >>> >>> First, which version of Tables are you using? Is it from one of the >>> files available on the ODK website? This will help us track down the issue. >>> >>> Surprisingly, there isn't currently a "show your location on the map" >>> function on the map view, although it is a good request and one we will >>> likely include in the future. A possible workaround would be to add a row >>> with the current location and try to see which is the new point, although >>> admittedly that isn't ideal and could be downright impossible with lots of >>> points. >>> >>> The map view screen is made up of two screen components: 1) the map >>> itself, which doesn't have an associated file, and 2) the HTML view. The >>> HTML view is the same sort of file as the list view. If you go to table >>> settings (which you can access several ways, one of which is clicking the >>> gear icon in the upper right corner when looking at the map view) you >>> should be able to select the view type of map view and then see an >>> associated map file, which will tell you the location of the file that is >>> being rendered. >>> >>> If you can't find the file, let us know, and we can try to figure out >>> where you can look with whichever version of the code you are using. >>> >>> >>> >>> On Tue, Jan 27, 2015 at 10:09 AM, wrote: >>> >>>> Hi all, >>>> I am hoping to use Tables to verify some point locations and add >>>> attribute information about those locations out in the field, but am >>>> hitting two stumbling blocks. >>>> >>>> First, I want the point markers to change color based on one of the >>>> columns, and although I can make the "Table Color Rules" and "Status Column >>>> Color Rules" work properly, I haven't been able to get the "Color Rule for >>>> Map" setting to change anything on the map no matter what I do. >>>> >>>> Second, I was hoping to show the device's current location on the map >>>> and can't figure out any way to set that! >>>> >>>> I have only found the html and js files to edit the list views but >>>> don't know where the files are that work with the map view. I should only >>>> have this one application on Tables, so it wouldn't be a problem if I have >>>> to edit files that would be used by other forms. I would really appreciate >>>> any advice. >>>> >>>> Thanks, >>>> Julie >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "ODK Developers" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to opendatakit-developers+unsubscribe@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > >

Hi Julie,

Did you ever figure out how to have the map pin colour determined based on a field value for that data point?

One other question, would you be able to point me to the map js and html files you needed to get the Map List View file working? I've exited the file from tables/geotagger/html to use in my implementation but the Map List View File remains empty in ODK Tables.

Thank you,
Che

I got the second part sorted: I missed the directions under the title
Updating the Initializing Files. Following these directions and inserting
the correct lines (and correctly editing them) into the properties.csv file
got the maps working. Directions are
here: https://opendatakit.org/use/getting-started-rev126/

I would still like to know how to change map pin color based on field
value. My use it so show open and closed items with different pin items. In
the Survey form one of the options is a Status field with a dropdown menu
where the user chooses Open or Closed.

Thank you for any help you can provide.

It seems that you have stumbled across a bug. Feel free to file an issue
at https://github.com/opendatakit/opendatakit/issues, and we will fix it as
soon as we can.

Thanks,
Clarice

ยทยทยท On Wed, Feb 24, 2016 at 9:00 PM, Che Geiser wrote:

I got the second part sorted: I missed the directions under the title
Updating the Initializing Files. Following these directions and inserting
the correct lines (and correctly editing them) into the properties.csv file
got the maps working. Directions are here:
https://opendatakit.org/use/getting-started-rev126/

I would still like to know how to change map pin color based on field
value. My use it so show open and closed items with different pin items. In
the Survey form one of the options is a Status field with a dropdown menu
where the user chooses Open or Closed.

Thank you for any help you can provide.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.