{"id":21430142,"url":"https://github.com/cuba-platform/maps-addon-demo","last_synced_at":"2025-03-16T21:44:49.984Z","repository":{"id":92173628,"uuid":"190380375","full_name":"cuba-platform/maps-addon-demo","owner":"cuba-platform","description":"This demo application demonstrates the usage of Maps CUBA add-on.","archived":false,"fork":false,"pushed_at":"2020-03-02T06:34:41.000Z","size":231,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-23T08:19:36.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuba-platform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-05T11:13:19.000Z","updated_at":"2019-10-31T13:30:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"511b39f0-e1ff-4a44-8b7c-7b322b6a7a40","html_url":"https://github.com/cuba-platform/maps-addon-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-platform%2Fmaps-addon-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-platform%2Fmaps-addon-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-platform%2Fmaps-addon-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuba-platform%2Fmaps-addon-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuba-platform","download_url":"https://codeload.github.com/cuba-platform/maps-addon-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940063,"owners_count":20372044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T22:20:58.473Z","updated_at":"2025-03-16T21:44:49.946Z","avatar_url":"https://github.com/cuba-platform.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maps Demo\n\nThis is an example of CUBA application working with the [CUBA Maps premium add-on](https://www.cuba-platform.com/marketplace/maps/). Based on CUBA Platform 7.1.0\n\n## Overview\n\nThe application has three entities with corresponding screens:\n\n* `Territory` - defines a territory as a polygon on the map.\n* `Salesperson` - a salesperson assigned to a territory.\n* `Order` - contains date, amount and the reference to a salesperson.\n\nThe editor screens of these entities have a map, where you can modify corresponding geometry.\n\nThe *Map* screen displays the map with two vector layers: `territories` and `salespersons`. If you click to a salesperson, a popup window with the salesperson's details will be opened.\n\nThe *Canvas* screen demonstrates examples of working with the map's canvas.\n\nThe *Orders* screen contains a list of orders. If you click to the *Show map* button, a screen with a map will be opened in a dialog. The map contains a layer of orders with clustering enabled. You can click to the *Generate 100 orders* button in order to automatically generate 100 new orders. The *Orders* screen also has *Show heatmap* button. If you click this button, you will see a heatmap of orders opened in a new screen.\n\n*Note*: the application requires the commercial subscription that includes Maps premium add-on.\n\n## How to Install the Maps Add-on Trial Version\n\nYou can get trial subscription from [CUBA Marketplace](https://www.cuba-platform.com/marketplace/maps/) to run this application on your local environment. After getting trial subscription you'll receive an email with a link for downloading ZIP archive with artifacts.\n\nTo install the trial version of Maps add-on:\n\n1. Get trial subscription from [CUBA Marketplace](https://www.cuba-platform.com/marketplace/maps/). You'll get an email with a link and instructions.\n\n2. Download ZIP archive with artifacts at link from the email.\n\n3. Clone the repository of this demo project.\n\n4. Open demo project in CUBA Studio.\n\n5. Create a directory called `repository` in the root directory of the demo project.\n\n6. Unzip the file with artifacts into this directory. You should get the following directory structure:\n\n ![structure](images/structure.png)\n\n7. Open `build.gradle` file and register a new Maven repository.\n ```\n maven {\n     url './repository'\n     }\n ```\n  ![buildscript](images/buildscript.png)\n\n8. Find a string with add-on coordinates and replace the add-on version with the latest one. Check the latest version on [CUBA Marketplace](https://www.cuba-platform.com/marketplace/maps/).\n\n ![version](images/version.png)\n\n9. Then add `.trial` to the end of add-on coordinates.\n\n ![trial](images/trial.png)\n\n10. Go to *CUBA -\u003e Build Tasks -\u003e Deploy* to check that the add-on was installed successfully.     \n\n## Issues\nPlease use https://www.cuba-platform.com/discuss for discussion, support, and reporting problems corresponding to this sample.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuba-platform%2Fmaps-addon-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuba-platform%2Fmaps-addon-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuba-platform%2Fmaps-addon-demo/lists"}