Integrate Google Maps in Oracle JET by Herman Brunnekreef

Posted: July 3, 2016 in JDeveloper & ADF, Mobile
Tags: , , , , , ,

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s