{"action":"created","issue":{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/974","labels_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/974/labels{/name}","comments_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/974/comments","events_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/974/events","html_url":"https://github.com/FWAJL/FieldWorkAssistantMVC/issues/974","id":74947817,"number":974,"title":"Changes to Mapping - Active Task view","user":{"login":"bsaiken","id":8228624,"avatar_url":"https://avatars.githubusercontent.com/u/8228624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsaiken","html_url":"https://github.com/bsaiken","followers_url":"https://api.github.com/users/bsaiken/followers","following_url":"https://api.github.com/users/bsaiken/following{/other_user}","gists_url":"https://api.github.com/users/bsaiken/gists{/gist_id}","starred_url":"https://api.github.com/users/bsaiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsaiken/subscriptions","organizations_url":"https://api.github.com/users/bsaiken/orgs","repos_url":"https://api.github.com/users/bsaiken/repos","events_url":"https://api.github.com/users/bsaiken/events{/privacy}","received_events_url":"https://api.github.com/users/bsaiken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/labels/priority:high","name":"priority:high","color":"eb6420"},{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/labels/status:more%20info%20required","name":"status:more info required","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"damirius","id":1443969,"avatar_url":"https://avatars.githubusercontent.com/u/1443969?v=3","gravatar_id":"","url":"https://api.github.com/users/damirius","html_url":"https://github.com/damirius","followers_url":"https://api.github.com/users/damirius/followers","following_url":"https://api.github.com/users/damirius/following{/other_user}","gists_url":"https://api.github.com/users/damirius/gists{/gist_id}","starred_url":"https://api.github.com/users/damirius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirius/subscriptions","organizations_url":"https://api.github.com/users/damirius/orgs","repos_url":"https://api.github.com/users/damirius/repos","events_url":"https://api.github.com/users/damirius/events{/privacy}","received_events_url":"https://api.github.com/users/damirius/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/milestones/3","html_url":"https://github.com/FWAJL/FieldWorkAssistantMVC/milestones/Mapping%20UI","labels_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/milestones/3/labels","id":807729,"number":3,"title":"Mapping UI","description":"Tasks related to enabling the mapping tool in FWM app. Google Maps is the choice as of Sep-29 2014.","creator":{"login":"FWAJL","id":7524388,"avatar_url":"https://avatars.githubusercontent.com/u/7524388?v=3","gravatar_id":"","url":"https://api.github.com/users/FWAJL","html_url":"https://github.com/FWAJL","followers_url":"https://api.github.com/users/FWAJL/followers","following_url":"https://api.github.com/users/FWAJL/following{/other_user}","gists_url":"https://api.github.com/users/FWAJL/gists{/gist_id}","starred_url":"https://api.github.com/users/FWAJL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FWAJL/subscriptions","organizations_url":"https://api.github.com/users/FWAJL/orgs","repos_url":"https://api.github.com/users/FWAJL/repos","events_url":"https://api.github.com/users/FWAJL/events{/privacy}","received_events_url":"https://api.github.com/users/FWAJL/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":13,"state":"open","created_at":"2014-09-30T04:27:52Z","updated_at":"2015-05-14T19:47:37Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-05-10T16:09:11Z","updated_at":"2015-05-19T21:47:28Z","closed_at":null,"body":"Take a look at the map legend.  Use the map legend view module: `popup_maplegend_active_task.php`.\r\n\r\nThe color of the marker depends on the work being performed.  All Task Locations start out red (not started).  So the color of the marker will be:\r\n * Red - not started (when the Task is first activated).\r\n * Yellow - in process.  This will be the condition after the first time the Field Technician does any work on the Task at this Location.  \r\n * Green - finished.  This will be the condition after all location-forms have been completed and/or, if the Location did not have coordinates when the Task started, the Location coordinates have been added.\r\n\r\nSince we are working on the Mobile UI right now, there won't be any Tasks in process or completed.  However, you could still add a column to the `task_location` table: `task_location_status`.  Then we can assign the status like so: 0 = not started; 1 = in process; 2 = finished.  For testing, we can manually populate the table values.  This is how I think it will work - if there is a better way let me know."},"comment":{"url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/comments/103676406","html_url":"https://github.com/FWAJL/FieldWorkAssistantMVC/issues/974#issuecomment-103676406","issue_url":"https://api.github.com/repos/FWAJL/FieldWorkAssistantMVC/issues/974","id":103676406,"user":{"login":"bsaiken","id":8228624,"avatar_url":"https://avatars.githubusercontent.com/u/8228624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsaiken","html_url":"https://github.com/bsaiken","followers_url":"https://api.github.com/users/bsaiken/followers","following_url":"https://api.github.com/users/bsaiken/following{/other_user}","gists_url":"https://api.github.com/users/bsaiken/gists{/gist_id}","starred_url":"https://api.github.com/users/bsaiken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsaiken/subscriptions","organizations_url":"https://api.github.com/users/bsaiken/orgs","repos_url":"https://api.github.com/users/bsaiken/repos","events_url":"https://api.github.com/users/bsaiken/events{/privacy}","received_events_url":"https://api.github.com/users/bsaiken/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T21:47:28Z","updated_at":"2015-05-19T21:47:28Z","body":"@damirius \r\nEven though it's the same Task, the behavior for Active Tasks and Inactive Tasks is different.  In inactive mode, we are constructing, or modifying the Task.  So, it is OK to assign and un-assign Locations.  Once the Task is active, the we will not be able to assign or un-assign Locations.  So if we just get rid of the link in the info window, even thought the js function exists, there would be no way to access it.  \r\n\r\nWe do need to be able to move markers in both active and inactive mode.  One of the possible purposes of the Task is to correctly identify the coordinates, so obviously we need to be able to do that in Active mode as well.\r\n\r\nWe can apply the color coding to the inactive task mode as well using the `task_location_status`.  The default, while constructing the task, is `task_location_status=0`, so they'd all appear red until we activated the Task and did some work.  "}}