In this Quick Start Guide you will learn how to get started with JxMaps library. 1. Get your own Google Maps API key You can do it here: https://developers.google.com/maps/documentation/javascript/get-api-key. The API key is used to track API requests associated with your project for usage and billing. Google Maps is no longer free. You have to associate a credit card so that you can get billed if your site has requests that exceed the $200 credit they give you monthly for free, otherwise you will get the watermarked maps. For more information, see: https://cloud.google.com/maps-platform/pricing/ 2. Download Library To download JxMaps library navigate to https://www.teamdev.com/jxmaps and click Download button. Unzip the downloaded archive into a directory on your computer (e.g. D:\Projects\MyProject). When you unzip the archive it will give you directory structure inside D:\Projects\MyProject\ as follows: lib\ jxmaps.jar // JxMaps library jxmaps-win.jar // JxMaps binaries for Windows jxmaps-mac.jar // JxMaps binaries for macOS jxmaps-linux32.jar // JxMaps binaries for Linux 32-bit jxmaps-linux64.jar // JxMaps binaries for Linux 64-bit samples\ // API samples doc\javadoc\ // Public API Javadocs doc\guide\ // Programmer's and Quick Start Guide demo\ // Demo application Readme.txt // Readme file License agreement.txt // License agreement 3. Getting Evaluation LicenceTo get free JxMaps 30-days evaluation licence please fill the web form and click Get Evaluation button. You will receive an email with a link that you can use to download evaluation license file — license.jar. Download the license.jar file and save it in the D:\Projects\MyProject\lib\ directory. lib\ jxmaps.jar // JxMaps library jxmaps-win.jar // JxMaps binaries for Windows jxmaps-mac.jar // JxMaps binaries for macOS jxmaps-linux32.jar // JxMaps binaries for Linux 32-bit jxmaps-linux64.jar // JxMaps binaries for Linux 64-bit license.jar 4. Create a Java projectCreate a new Java Project using your favorite IDE. 5. Add JxMaps libraries to the project Add JxMaps libraries and evaluation license to the Project in the IDE: D:\Projects\MyProject\lib\jxmaps.jar D:\Projects\MyProject\lib\jxmaps-win.jar D:\Projects\MyProject\lib\jxmaps-mac.jar D:\Projects\MyProject\lib\jxmaps-linux32.jar D:\Projects\MyProject\lib\jxmaps-linux64.jar D:\Projects\MyProject\lib\license.jar 6. Create Hello, World! applicationIn your Java Project create a new HelloWorld Java class with the following content: /* 7. Run the ProgramCompile and run HelloWorld program. You will see the following window: |
Documentation >