You will need Maps API Key for Maps to work in the applications you develop. You need to generate the Maps API key and specify it in the properties of the Map widget.
You need to configure the following map keys for your application:
The map widget key needs to be generated based on a domain name. The key generated for a single domain can be used for all sub-domains, URLs on hosts in those domains, and all ports on those hosts. For more information about the domain to be used for generating a map APIs key, see http://code.google.com/apis/maps/faq.html#keysystem.
The generated map key is configured at an application level. This map key is used by all the Map widgets within an application. This map key enables the application to display Google Maps through the Map widgets within the application.
To configure map widget key, do the following:
By default, a key can be used on any site. We strongly recommend that you restrict the use of your key to domains that you administer, to prevent use on unauthorized sites. You can specify which domains are allowed to use your API key by clicking the Edit allowed referrers... link for your key.
Note: When you add a Map widget to a form, the map widget key you have entered automatically appears against the Google Map Key property of the Map widget. The key generated once is applicable to all the Map widgets within an application.
This configured map widget key is applicable for all platforms except for Android. For Android you need to generate a specific map APIs key and use it in the properties. For more information, see Google Map Key for Android.
You need the Google Maps API key for Android in order to enable Maps in the applications you develop for Android platform. Maps API keys are linked to specific certificate/package pairs, rather than to users or applications.You only need one key for each certificate, no matter how many users you have for an application. Applications that use the same certificate can use the same API key. For generating maps API key for Android, you need to provide the fingerprint of the signed certificate. For more information see Maps Documentation.
Important: Version 1 of the Google Maps Android API as been officially deprecated as of December 3rd, 2012. This means that from March 3rd, 2013 you will no longer be able to request an API key for this version. No new features will be added to Google Maps Android API v1. However, apps using v1 will continue to work on devices. Existing and new developers are encouraged to use Google Maps Android API v2.
To obtain and configure Google Maps API Key v2 for Android, follow these steps:
Navigate to Properties > Application tab. Under Map Widget, add the key generated above in the Android map widget key 2 field.
Important: Google Play services Revision 13 (Version Name 4.0.30 released on November 2013) and newer versions require Android 2.3 or higher.
If you have Google Play Services older to v13, you do not have to perform this step.
If you have downloaded Google Play Services v13 in Android SDK manager, follow either of the below options:
google_play_services_froyo
" to "google_play_services",
in the Android SDK path: ..\android-sdk-windows\extras\google\
.
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />.
Important Considerations:
If the build fails for MapV2, verify the log if it contains the following messages.
"[exec-shell] BUILD FAILED [exec-shell] ..\sdk\tools\ant\build.xml:601: Invalid file: ..\LibProjects\google-play-services_lib\build.xml" " [exec-shell] Error: The project either has no target set or the target is invalid. [exec-shell] Please provide a --target to the 'android.bat update' command. (or) google-play-services_lib\build.xml[dependency] Ordered libraries:
Follow these steps to resolve the build issue:
Verify if the target that is set in the project.properties
file is already downloaded in the SDK Manager. The project.properties
file is available at the following location:
<SDK-PATH>\extras\google\google_play_services\libproject\google-play-services_lib\project.properties.
If the target is not available in the SDK Manager, then change the project.properties
file to point to an appropriate target in the SDK Manager.
For example, if project.properties
file contains target=android-9
and it is not available in the SDK Manager, change the target as target=android-8
or target=android-10,
which ever target is available.
Alternative Procedure
android list targets
Set appropriate target from the available targets to <SDK-PATH>\extras\google\google_play_services\libproject\google-play-services_lib
using the following command:
android update lib-project --target <appropriate target ID number from above command> --path <SDK-PATH>\extras\google\google_play_services\libproject\google-play-services_lib/
To generate a Bing Map Key for Windows platforms, refer http://msdn.microsoft.com/en-us/library/ff428642.aspx.
Navigate to Application>Properties and enter the obtained key in the Bing map widget key field.
Copyright © 2013 Kony, Inc. All rights reserved. |