This mini project was a Single-Page Application (SPA) that shows details and locations of traffic incidents that took place in Victoria state using API provided by Victoria state government.
- For Desktop view: desktopview.PNG, desktopview_markerclicked.PNG
- For mobile view: mobileview_list.PNG, mobileview_map.PNG
- Angular2, Typescript, Lite-server
- Please use the security-disabled-chrome for this app by either way of the following. (see the Issue-Access Control Allow Original) a. Chrome extension: https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi b. Chrome –disable-web-security b-1. Copy the shortcut icon of Chrome in Desktop b-2. Rename it differently. b-3. Right click => properties b-4. in [Shortcut]=>Target, set it to "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C:/ChromeDevSession"
- Extract the folder (TrafficMapApp) to your favourable location. (i.e. D://).
- Open CMD and go to the directory location (i.e. D://trafficMapApp).
- Enter “ng serve” or “npm start”.
- Open the Security disabled Chrome browser or Chrome browser with Allow-Control-Allow-Origin extension, and type “localhost:4200” [Issue] Access Control Allow Origin
- Could not fetch the data from the API address provided because of Access Control Allow Origin policy issue.
- Tried proxy configuration, enabling CORS in the setting file, and using JSONP instead of HTTP, but did not work.
Desktop and Mobile screen views images can be seen here:
https://drive.google.com/open?id=0B5KkAdCYDZb2aS1CLXdGTzRyejQ
https://drive.google.com/open?id=0B5KkAdCYDZb2MWY5ZUpueThGdUk
https://drive.google.com/open?id=0B5KkAdCYDZb2N0lEYkF5dm8tc3M
https://drive.google.com/open?id=0B5KkAdCYDZb2Zi1NUHhUcE9jT2s