X

Developer Partner Community

  • July 3, 2016

Integrate Google Maps in Oracle JET by Herman Brunnekreef

Juergen Kress
PaaS Partner Adoption

clip_image002

I would like to integrate Google Maps in Oracle JET. This can be very helpful if you want to know where your customers are located. For example, in the customer database you can save the latitude and longitude of the location where your customer is located.

For this demo I created an array with places and their corresponding latitudes and longitudes.

1

2

3

4

5

var locations = [{name: "AM", lat: "52.37", lon: "4.89"},

{name: "SF", lat: "37.77", lon: "-122.42"},

{name: "TO", lat: "35.69", lon: "139.69"},

{name: "NY", lat: "40.71", lon: "-74.01"},

{name: "CT", lat: "-33.93", lon: "18.42"}];

To solve the integration, I did the following steps:

First you need to get a Google API key; you can get it here

Then you have to add the google API to your project:

1

<script src="https://maps.googleapis.com/maps/api/js?key=YOUR-API-KEY">

Now let’s create the selectbox: Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.