Quantcast
Channel: Oracle Bloggers
Viewing all 19780 articles
Browse latest View live

Partner Webcast: Introduction to Oracle Internet of Things Cloud Service 16.3.3 - August 23rd, 2016

$
0
0

Please join the Oracle Product Management team in an introduction to version 16.3.3 of the Oracle Internet Cloud Service. 

  • Date & Time: August 23rd, 2016 @ 9:00 - 10:00 AM PT
  • Speakers: Harish Gaur and Florian Tournier, Oracle Product Management

This webcast will provide an overview of the exciting new features available in this release. It will feature a demo of the new, readily-deployable Asset Monitoring application for rapid integration of IoT device data into asset monitoring workflows.

Register now to get the latest IoT Cloud Service product information!


Introduction to Oracle Internet of Things Cloud Service – Webcast August 23rd 2016

$
0
0

image

Introduction to Oracle Internet of Things Cloud service 16.3.3 and IoT Asset Monitoring Mini-App

Speakers: Harish Gaur and Florian Tournier

Please join the Oracle Product Management team in an introduction to version 16.3.3 of the Oracle Internet Cloud Service. This webcast will provide an overview of the exciting new features available in this release.

It will feature a demo of the new, readily-deployable Asset Monitoring application for rapid integration of IoT device data into asset monitoring workflows.

Schedule: Aug 23, 2016 18-19:00 CET (Berlin time)

For details please visit the registration page here.

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

BlogTwitterLinkedInimage[7][2][2][2]Facebookclip_image002[8][4][2][2][2]Wiki

Oracle Open World 2016 - Recommended Customer Talks

$
0
0
At OOW 2016 there are some customer talks from customers we worked with or at least were involved in their project plans. We highly recommend the talks below. British Telecom has such an ambitious upgrade and migration project for really MANY databases. I'm looking forward to David's talk. We met at... [Read More]

Parallel PL/SQL Functions and Global Temporary Tables... and Wrong Results

$
0
0
Recently I got a question from a customer about a parallel query which produces wrong results. The query involves a global temporary table and a parallel enabled PL/SQL function. Before talking about this specific query I want to briefly show the effect of using PL/SQL functions in a parallel query. PL/SQL functions... [Read More]

What is the Fourth Industrial Revolution & How Will it Affect You?

$
0
0

Written by Alexandra Georgescu, Oracle University Program Manager - Workforce Development 

What is the Fourth Industrial Revolution?

We are living days of change.

Some call it the "fourth industrial revolution", some call it "Industry 4.0." Regardless of what you call it, we're seeing the combination of cyber-physical systems (CPS), the Internet of Things and the Internet of Systems.

Previous industrial revolutions liberated humankind from animal power, made mass production possible and brought digital capabilities to billions of people.

This fourth industrial revolution is, however, fundamentally different. It is impossible to define it without using the words "cyber-physical systems" and "cloud computing."

It’s a revolution of networks, platforms, people & digital technology.

And according to Professor Klaus Schwab, Founder & Executive Chairman of the World Economic Forum, it is blurring the lines between physical, digital and biological spheres."


Image source: https://mjolner.dk

Drivers of Change: How Will it Affect You?

Disruptive changes to business models will have a profound impact on the employment landscape over the coming years.

The rapid pace of change will result in business model disruptions that lead to a perpetual need for new skill sets that require concerted effort for adjustment.

Schwab also fears organizations might be unable to adapt. Governments could fail to employ and regulate new technologies to capture their benefits. Shifting power will create important new security concerns, inequality may grow and societies may fragment.

When compared with previous industrial revolutions, this fourth industrial revolution is evolving at an exponential rather than a linear pace.

Moreover, it is disrupting almost every industry in every country. The breadth and depth of these changes predicts the transformation of entire systems of production, management, and governance.

The revolution could bring greater inequality, particularly in its potential to disrupt labor markets.

As a consequence, some analysts consider that in the future, talent, more than capital, will represent the critical factor of production.

This will give rise to a job market increasingly segregated into “low-skill/low-pay” and “high-skill/high-pay” segments, which in turn will lead to an increase in social tensions.

Technology is therefore one of the main reasons why incomes have stagnated, or even decreased, for a majority of the population in high-income countries. The demand for highly skilled workers has increased while the demand for workers with less education and lower skills has decreased.

The result is a job market with a strong demand at the high and low ends, but a hollowing out of the middle.

Employment Trends for a Successful Career Path

The computer and mathematical job family is anticipated to experience very high growth centered on data analysis and software and applications developers.

And not just within the ICT industry, but across a wide range of industries, including:

  • Financial services & investors
  • Media
  • Entertainment and information
  • Mobility and professional services

Computing power and Big Data analytics constitutes a significant driver of employment growth in each, all resulting from the global digital transformation.

The future is looking bright for those who dream of becoming data analysts or sales representatives.

Because of the overall disruption, the competition for talent in hot job families like computer and mathematical, architecture, engineering and other strategic roles will be fierce. Employers will need to prioritize finding efficient ways of securing a solid pipeline.

Gain an Edge in the Interview Process

After graduating, it can be difficult to make yourself stand out in the candidate pool. Lack of experience, as well as fierce competition, makes it difficult for young people who want to enter the job market.

Enrolling in Oracle University training courses helps young people expand knowledge and validate expertise to gain an edge over others in the job market.

Compliment traditional classroom training with the most effective way to learn by adding the digital learning element.

This blended learning approach has proven time and time again as the best way to solidify and compliment knowledge learned.

With more than 420,000 customers with distribution across a variety of industries in more than 145 countries, developing the most in demand  skills will create more professional options.

Just imagine being able to contribute to the success of over 420,000 businesses just by learning Oracle technologies. Pretty amazing, right?

Taking hands-on Oracle training is a very smart choice for those who are passionate about database or Java. It offers a comprehensive and fully integrated stack of cloud applications, platform services, and engineered systems.

This means there are numerous technologies to learn and many courses to choose from. The more you learn and the more Oracle Certifications you earn, the more options you have to work for any of the over 420,000 Oracle customers.

Excited already about all the possibilities? We don't blame you!

Learn Oracle technologies to kick start your tech career.Your future is bright!

For more information about the Workforce Development Program, Oracle courses and certification, please access this link.

Prepare to Upgrade to Oracle Database 12c OCP - Preconference Training at Oracle OpenWorld

$
0
0


Oracle University Preconference Training offers unique deep-dive training sessions taught by our expert instructors on Sunday, September 18, 2016.

It's a perfect opportunity to prepare for Oracle Database 12c OCP with Certification Exam Cram: Upgrade to Oracle Database 12c OCP

This session prepares students for the latest version of the Oracle Certified Professional Oracle Database Administrator certification exam.

Register today!


Explore ALL sessions on the Oracle OpenWorld and JavaOne registration page under add on options.

PHP OCI8 2.1.2 and OCI8 2.0.12 released on PECL

$
0
0
PHP OCI8 2.1.2 (for PHP 7) and OCI8 2.0.12 (for PHP 5.2+) have been uploaded to PECL. The OCI8 extension allows PHP applications to connect to Oracle Database. Use pecl install oci8 to install PHP OCI8 2.1 for PHP 7. Use pecl install oci8-2.0.12 to install PHP OCI8 2.0 for PHP 5.2 - PHP 5.6. Note: PHP 5.6 is the... [Read More]

Node-oracledb 1.11 Released to NPM

$
0
0
We've pushed out a release of node-oracledb to GitHub and NPM. Top feature: Connection Pool Cache The node-oracledb driver connects Node.js to Oracle Database for fast and functional applications. The changes in node-oracledb 1.11 are: Added a connection pool cache feature allowing pools to be given a... [Read More]

Oracle OPN Cloud Partners Featured in Profit – August Edition

$
0
0



Profit Magazine continues to promote our OPN Cloud partners by highlighting their achievements:

  • Learn how our OPN Global Cloud Elite partners – Accenture & Deloitte – are helping customers successfully transition and implement ERP cloud technologies;
  • Read the Executive interview with Senior Vice President, Oracle Cloud, Shawn Price to see how the OPN Cloud Program helps partners move their customers to the cloud

Profit Magazine

Upcoming LIVE OPN PartnerCast: Oracle HCM Cloud – August 24

$
0
0

Tune in to our next LIVE OPN PartnerCast airing Wednesday, August 24 at 10am PT. Host Jonathan Vinoskey of Oracle will bring you the latest on Oracle HCM Cloud.

Guests and topics include:  

  • Aylin Uysal on HCM User Experience;
  • Adriana Smith on Applications Competitive Intelligence;
  • Jonathan will close out the show with Oracle HCM highlights and updates, and what partners can expect at OPN Central @ Oracle OpenWorld.

Watch the show live from the OPN homepage and follow the conversation live via Twitter using @oraclepartners in your tweets!

Watch the show live 

OPN Central @ OpenWorld

Oracle OpenWorld 2016 – What You Need to Know

$
0
0


Starting to think about your schedule at Oracle OpenWorld? We have you covered.

Follow the steps below to get a jump start on your plans this year:

1. Oracle OpenWorld & JavaOne Pre-registration: We hope you’ve already reserved your seat, but if not, there’s still time to save $200 off the full conference pass price;

2. OPN Central website: Now that you’ve registered, check out the OPN Central website for a one-stop-shop for all OPN-related happenings during conference week;

3. OPN Focus On Doc: All the OPN Central activities in one (printable!) place. Print this handy two-pager that’ll help you plan & maximize your conference week;

4. OPN Test Fest: Register today for OPN Test Fest and take partner certification exams free of charge during the conference – there are many exams to choose from!

5. OPN In Focus Sessions: Review the OPN In Focus Sessions to get a sense of which you’d like to attend, and stay tuned for the reservation tool coming soon so you can confirm your spot;

6. Oracle Appreciation Event: It wouldn’t be OpenWorld without a good concert. Get ready for Billy Joel to take the stage at AT&T Park!

7. Pack: comfortable shoes, portable battery chargers, and your best selfie game to capture all the exciting moments in the one of the most beautiful cities in the world!

Getting started with Process Cloud Service by Waslley Souza

$
0
0

clip_image002

If you know and use Oracle BPM Suite, you will like to try the new cloud solution called Oracle Process Cloud Service or PCS. With PCS you can modeling your processes through the cloud without the need to install Oracle BPM Suite. Go to PCS section within the Oracle Cloud website to learn more about or try it: http://cloud.oracle.com/process.

In this post we will create a basic process to create and approve employees.
Download the sample application: CreateEmployeeApplication.zip.

Log in to Oracle Process Cloud Service.
Click Create button, and then select New Application.

Name the application as Create Employee Application.
Select New Space option, and then name it as HR.

In this step, we will create the process and we have many options to create it.
Select the Form Approval Pattern option.

Name the process as Create Employee Process.

In the Create Employee Process, right-click Submit Request, and then select Implement. Read the complete article here.

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

BlogTwitterLinkedInimage[7][2][2][2]Facebookclip_image002[8][4][2][2][2]Wiki

Corvirtus Hiring Assessments Now Available in the Oracle Cloud Marketplace - August 2016

$
0
0

Corvirtus, a leading provider of hiring assessments and Gold level member of Oracle PartnerNetwork (OPN), today announced that Corvirtus Hiring Assessments are now available in the Oracle Cloud Marketplace offering added value to Oracle Human Capital Management (HCM) Cloud customers. The Corvirtus Hiring Assessments application enables HR professionals to streamline talent management efforts by shortening the time to fill a position, improving quality hires, increasing culture fit and reducing unwanted turnover.

Read more.

TimeClock Plus Achieves Oracle Validated Integration with Oracle's PeopleSoft Time and Labor - August 2016

$
0
0

TimeClock Plus (TCP), a Gold level member of Oracle PartnerNetwork (OPN), announced it has achieved Oracle Validated Integration of TCP Direct with Oracle's PeopleSoft Time and Labor 9.2. This validation is a major milestone in the evolution of TCP and its relationship with Oracle. The company continues to grow its presence in the Enterprise Resource Planning (ERP) space and with Oracle Validated Integration for PeopleSoft Time and Labor, the company is even better positioned to serve the needs of its enterprise customers.

Read more.

MySQL Partner Webcast: MySQL Enterprise Edition Jump-start

$
0
0


Jump-start your MySQL knowledge with this in-depth webinar that will assist you in learning the building blocks for creating a centralized service offering with MySQL Enterprise Edition.

This webcast will be offered in 3 languages: English (9/13), Spanish (9/14), and Portuguese (Brazil) (9/14).

Register today! 


Announcing the New Oracle Education & Research 2016 Industry Enablement!

$
0
0

We are glad to announce the release of a new Education & Research 2016 Industry Specialist Training Guided Learning Path targeted at your sales and sales consulting teams so that they can understand Oracle’s key messages within the industry, articulate Oracle’s key solutions for the sector and be able to position our products to their respective customers and prospects.

Gain proficiency in positioning and selling the Oracle Education and Research Industry solutions and contribute towards your career and your company achieving the Specialization status.

Take the new Oracle Education & Research 2016 Industry Specialist online assessment which will count towards your company specialization and individual specialist accreditation.

Check out the new Oracle Education and Research Industry Specialization and get your company specialized as a unique differentiator in the market place. 

Translating Oracle JET Applications

$
0
0

The Oracle JET MOOC starts on Monday. When we talk about Oracle JET we always say that it solves "enterprise challenges". One of these is internationalization/localization/translation of JavaScript applications. Recently I started playing with the translation features of Oracle JET and they're pretty impressive. Really, if you want to create JavaScript applications that need to be translated, you should look no further than Oracle JET.

Let's start by looking at the result of a small sample I've been working on. Here's an application that can be switched to 4 different languages, with a screenshot of 3 of them below: 

Everything to achieve the above is documented in "Internationalizing and Localizing Applications" in the Oracle JET Developer Guide. This topic is also dealt with in the 3rd week of the Oracle JET MOOC.

There are several bits and pieces involved in this sample: 

  1. Bundled translations for Oracle JET components. Oracle JET components, such as the date/time picker that you see above, have already been translated. The translations are found in libs/oraclejet/dist/js/libs/oj/resources/nls.

  2. Custom translation bundles. Aside from the Oracle JET components, which have already been translated, Oracle JET provides a facility for storing and loading your own translations. Below, you can see a folder called "resources/nls", with subfolders for each of the languages I am supporting:



    In "main.js", I have this, which registers the "resources/nls/l10" structure and merges it with the translations that are provided by Oracle JET:
    config: {
        ojL10n: {
            merge: {
                'ojtranslations/nls/ojtranslations': 'resources/nls/l10'
            }
        }
    }

    The most important file in "resources/nls" is the file named "l10.js", which could be named anything at all, so long as it matches the registration in "main.js" shown above. It looks like this, in my case:

    define({
      "root": {
        "date": "Date:",
        "greeting": "Good Morning"
    },
      "ar": true,
      "fr": true,
      "cs": true
    });
    In each of the folders that have been enabled above, i.e., "ar", "fr", and "cs", translations of the above texts are found, e.g., in "ar":



    Now, anywhere in our viewModel, we can use this statement to retrieve the greeting of the current locale:
    oj.Translations.getTranslatedString('greeting')
  3. RTL Support. Bidirectional features are included too, read here, simply by setting the "dir" attribute of the "html" element to "rtl" and back to "ltr".

  4. Dynamic Locale Switching. Via the buttons you see above, the locale can be switched, as described here.

Following from the above, the complete code for the viewModel is as follows, focused on enabling the switching between locales, which will cause the translation bundles to be loaded dynamically:

define(['ojs/ojcore', 'knockout', 'ojs/ojbutton', 'ojs/ojdatetimepicker'],
    function (oj, ko) {
        function mainContentViewModel() {
            var self = this;
            self.formats = ko.observableArray(["english"]);
            self.date = ko.observable();
            self.greeting = ko.observable("Good Morning");
            self.localeDate = ko.observable();
            self.localeDate(oj.Translations.getTranslatedString('date')); 
            self.localeGreeting = ko.observable();
            self.localeGreeting(oj.Translations.getTranslatedString('greeting')); 
            self.setLang = function (data) {
                var newLang = '';
                switch (data) {
                    case 'Arabic':
                        newLang = 'ar-EG';
                        self.formats(["arabic"]);
                        break;
                    case 'Czech':
                        newLang = 'cs-CZ';
                        self.formats(["czech"]);
                        break;
                    case 'French':
                        newLang = 'fr-FR';
                        self.formats(["french"]);
                        break;
                    default:
                        newLang = 'en-US';
                        self.formats(["english"]);
                }
                oj.Config.setLocale(newLang,
                    function () {
                        $('html').attr('lang', newLang);
                        if (newLang === 'ar-EG') {
                            $('html').attr('dir', 'rtl');
                        } else {
                            $('html').attr('dir', 'ltr');
                        }
                        self.localeDate(oj.Translations.getTranslatedString('date')); 
                        self.localeGreeting(oj.Translations.getTranslatedString('greeting')); 
                        $('#dateInput').ojInputDateTime('refresh');
                    }
                );
            };
        }
        return new mainContentViewModel();
    });

And here's the view:

<div data-bind="ojComponent: {component: 'ojButtonset', checked: formats}">
    <!--Arabic-->
    <label for="arabic">Arabic</label>
    <input data-bind="click: function(){setLang('Arabic');}" 
           type="checkbox" value="arabic" id="arabic"/>
    <!--Czech-->
    <label for="czech">Czech</label>
    <input data-bind="click: function(){setLang('Czech');}" 
           type="checkbox" value="czech" id="czech"/>
    <!--French-->
    <label for="french">French</label>
    <input data-bind="click: function(){setLang('French');}" 
           type="checkbox" value="french" id="french"/>
    <!--English-->
    <label for="english">English</label>
    <input data-bind="click: function(){setLang('English');}" 
           type="checkbox" value="english" id="english"/>
</div>
<br/>
<br/>
<span style="font-size: 50pt" id="greeting" data-bind="text: localeGreeting"></span>
<br/>
<span data-bind="text: localeDate"></span>
<input id="dateInput" type="text" 
    data-bind="ojComponent: {
        component:'ojInputDateTime', 
        value: date,
        datePicker: {changeMonth: 'none', changeYear: 'none'}
    }"/>

That's it. And here's the sample code shown above:

https://github.com/GeertjanWielenga/OJETCourse/tree/master/Part-024

A next step is to generate all the buttons automatically from JavaScript, i.e., there should be some way to provide new buttons to switch to new languages easily, without having to code them in HTML, i.e., in the viewModel, find the lists of available translation locales and create the buttons, and their logic, based on that. 

Oracle PartnerNetwork Community - Get Certified FREE at Oracle OpenWorld

$
0
0

Written by Iulia Pantelimon, OPN


Partners can take certification exams during Oracle OpenWorld at no cost, only at the OPN Test Fest.

The OPN Test Fest runs from Monday, September 19 - Thursday, September 22 at the Courtyard San Francisco Downtown Hotel.

It’s an exceptional opportunity for partners to take Oracle PartnerNetwork exams for FREE!

Experience the benefits when achieving certification successfully. Candidates earn an OPN Certified Specialist credential, a digital badge to promote across social media platforms, along with helping their employer achieve OPN Specialization.

There are more than 70 exams and 10 testing sessions to meet candidates’ needs and busy schedules.

Available exams span a wide selection of Oracle Solutions with a focus on Cloud. All partners are encouraged to register. Select up to two sessions and exams of their choice, and start preparing.

Register Today!

Oracle Partner Enablement Team is looking forward to meeting the OPN Test Fest attendees in San Francisco!

Meet Us at LinuxCon North America - Toronto

$
0
0

Oracle is a gold sponsor at LinuxCon North America, August 22nd – 24th, 2016. at Westin Harbour Castle, Toronto, Canada this year. Oracle has served on the board of the Linux Foundation since its inception in 2007 and remains steadfast to show its commitment to the open source community and their initiatives.  

We have great sessions lined up, one of these sessions will be presented by Robert Shimp, Product Management Group Vice President, who wrote an article about cloudlets that you can read. If that piked your interest, attend his session :

Linux Administration in Distributed Cloud Computing Environments

Tuesday, August 23rd at 11:55am – 12:45pm

Abstract:

Systems of engagement and control in distributed computing environments, are changing Linux system administration strategies. These next-gen applications, potentially based on cloud services at or close to the edge of the network, will be largely container-based microservices that may be deployed to dozens or hundreds of distributed sites.  These applications will create opportunities for greater innovation today than at any recent time in the past. This session will outline a vision for Linux in cloud-based distributed computing environments and some of the challenges to deliver on that vision.

Other Oracle sessions include:

Wednesday, August 24 • 10:55am - 11:45am , Experience in Developing a Driver for a Complex New Hardware Device on Qemu/KVM - Knut Omang, Oracle

Wednesday, August 24 • 10:55am - 11:45am, Polyglot Databases - Dave Stokes, Oracle

Wednesday, August 24 • 4:35pm - 5:25pm. Automating the Creation of Stable Trees - Sasha Levin, Oracle

Wednesday, August 24 • 2:15pm - 3:05pm, Securing Multi-Tenant Traffic Tunnelled Over Kernel Managed Virtualization Technologies - Sowmini Varadhan, Oracle

Don’t forget to visit us at the Booth #22 to hear and ask about Oracle Linux, VirtualBox, Ksplice, Oracle OpenStack, Oracle VM.

We look forward to seeing you at the show. 

Oracle Linux and Virtualization team



Integrating Oracle Fusion Middleware MapViewer with Oracle JET

$
0
0

There are many map components in the world out there—and I have documented how to integrate several of them in an Oracle JET application, e.g., 3DCityDB, Mapbox, Leaflet, and LuciadRIA, as well as Oracle JET's ojThematicMap component

However, Oracle has its own map component, as described in detail below, which includes the Oracle Maps Javascript library:

http://www.oracle.com/technetwork/middleware/mapviewer/overview/index.html

Oracle Fusion Middleware MapViewer is a development toolkit for incorporating interactive maps and spatial analyses. It is optimized for use with Oracle Spatial and Graph. (The related Oracle blog is blogs.oracle.com/oracle_maps_blog.) Here below is how it looks when integrated into an Oracle JET application, with many thanks to my colleague Jayant Sharma, who made it happen and provided the instructions that follow, which I have successfully used and I can report that it works.

Instructions for integrating Oracle Fusion Middleware MapViewer with Oracle JET, assuming you have set up an Oracle JET application, e.g., via the Oracle JET QuickStart Basic template:

  1. Add the Oracle Maps V2 kit into js/libs as a folder named 'oraclemaps'. The kit can be downloaded from here and specifically here: http://download.oracle.com/otn/other/mapviewer/12c/12211/v2_122110_full.zip

  2. Modify "main.js" to include the various Oracle map libraries, in the requires.config "path" and "shim" sections. I.e., add these entries in the "paths" section:
    //File paths for Oracle Maps HTML5 API
    'omapsv2-hammer': 'libs/oraclemaps/v2/jquery/jquery.hammer-full.min',
    'omapsv2-i18n-properties': 'libs/oraclemaps/v2/jquery/jquery.i18n.properties-min-1.0.9',
    'omapsv2-mousewheel.min': 'libs/oraclemaps/v2/jquery/jquery.mousewheel.min',
    'omapsv2-rtree': 'libs/oraclemaps/v2/rtree/rtree-min',
    'omapsv2-fortknox': 'libs/oraclemaps/v2/fortknox-libs/fortknox-canvas',        
    'omapsv2_core': 'libs/oraclemaps/v2/oraclemapsv2_core'

    ...and these in the "shim" section:

    //Oracle Maps HTML5 API dependencies
    'omapsv2-i18n-properties':  ['jquery'],
    'omapsv2-hammer': ['jquery'],
    'omapsv2-mousewheel.min' : ['jquery'],     
    'omapsv2_core': {
       deps: ['jquery','hammerjs','omapsv2-fortknox','omapsv2-rtree','omapsv2-hammer','omapsv2-i18n-properties','omapsv2-mousewheel.min'],
       exports: 'OM'
    }
  3. Modify the view of an Oracle JET module, e.g., "home.html", in the way it's done for the MapBox example, i.e., rewrite "home.html" to be the following and include "css/styles.css" containing "#map { width:100%; height:100%; }": 
  4. <STYLE TYPE="text/css">
    <!--
      @import url(css/styles.css);
    -->
    </STYLE>
    
    <div id='map'></div>
    
  5. Modify the viewModel of an Oracle JET module, e.g., "home.js", to be as follows, and read the comments below to understand the code:
    define(['ojs/ojcore', 'knockout', 'omapsv2_core'],
        function (oj, ko) {
            function mainContentViewModel() {
                var self = this;
                self.handleAttached = function () {
                    /* */
                    if (OM !== undefined) {
                        //Where to load Oracle Maps HTML5 API resource files (fonts, css and icons et al):
                        OM.gv.setResourcePath("js/libs/oraclemaps/v2");
                        //Default http method when fetching remote geospatial contents:
                        OM.gv.setHttpMethod("GET");
                    } else
                        console.log('OM not loaded');
                    var X = -77;
                    var Y = 38.9;
                    var initialZoom = 11;
                    //This function adds various map controls to the provided OM.Map instance:
                    var addMapControls = function (myMap)
                    {
                        //defines various properties for the navigation control:
                        var navConfig = {
                            orientation: 1,
                            style: OM.control.NavigationPanelBar.STYLE_ZOOM_BUTTONS_ONLY,
                            anchorPosition: 1
                        };
                        //creates the navigation control:
                        var navigationControl = new OM.control.NavigationPanelBar(navConfig);
                        // navigation control (and other map controls) are typically added
                        //to the map as map decorations:
                        myMap.addMapDecoration(navigationControl);
                        //defines the basic properties for the map scale bars:
                        var sbConfig = {
                            format: "BOTH",
                            anchorPosition: 4,
                            endMarks: false
                        };
                        //defines the display style of the scale bars:
                        var sbStyle = {
                            thickness: 5,
                            color: '#257db3',
                            shadow: true
                        };
                        //creates the actual scale bar instance and sets the display style:
                        var scaleBar = new OM.control.ScaleBar(sbConfig);
                        scaleBar.setStyle(sbStyle);
                        //adds the scale bar to the map as another map decoration:
                        //myMap.addMapDecoration(scaleBar);   
                    };
                    var showMap = function ()
                    {
                        //This is the DIV that will display the map; it needs to be passed into
                        //the map instance:
                        var mapDiv = document.getElementById('map');
                        if (!mapDiv)
                        {
                            console.log("Map container DIV not found!");
                            return;
                        }
                        //Creates a new map instance. Notice we are not supplying a Universe
                        //like in helloworld.js, since the universe will be defined when we
                        //add the tile layer to the map. Every tile layer includes its own
                        //universe definition as part of the tile layer's configuration:
                        var map = new OM.Map(mapDiv, {mapviewerURL: ''});
                        //This is how we create an Oracle eLocation tile layer: by creating
                        //a new instance of the OM.layer.ElocationTileLayer class. Check
                        //the <a href="https://apidoc/index.html">API Doc</a> for other built-in tile 
                        //layers such as Bing maps:
                        var tileLayer = new OM.layer.ElocationTileLayer("elocation");
                        //Adds the tile layer to the map:
                        map.addLayer(tileLayer);
                        //creates a point object located at the given longitude and latitude: 
                        var point = new OM.geometry.Point(X, Y);
                        //Adds various map controls to the map:
                        //console.log('adding mapControls');
                        addMapControls(map);
                        // set the initial map zoom level and center (same as the location marker):
                        map.setMapCenter(point);
                        map.setMapZoomLevel(initialZoom);
                        //Now we can complete the initialization of the map. You must
                        //only call this method once.  Note however map layers can
                        //be added even after calling this method:
                        map.init();
                    }; //showMap
                    // console.log('call showMap');
                    showMap();
                    /*  */
                }; // handleAttached
            }
            return new mainContentViewModel();
        });

That's it. Run the project and you'll see the same as in the screenshot above.

Viewing all 19780 articles
Browse latest View live




Latest Images