informationtaya.blogg.se

Google earth widget
Google earth widget








  1. GOOGLE EARTH WIDGET CODE
  2. GOOGLE EARTH WIDGET DOWNLOAD

Want to look back on past adventures? You've got it: Just tap your profile picture in Maps' upper-right corner, then select "Your Timeline" from the menu that comes up and look for the word "Trips" on the bar at the top of the screen. Tap that, and any flights, car rentals, restaurant reservations, or other travel-related plans you've got will show up in an organized list - culled directly from the confirmations in your Gmail inbox as well as your Google Calendar. Var address = selectedObj.Address + " " + selectedObj.City + " " + selectedObj.PostalCode + " " + selectedObj.Country ĮventBus.publish("google.So here's the secret: Open up the Maps app on Android, tap the Saved tab at the bottom, and then scroll down and look for the circular Reservations button. Var selectedObj = source._getBindingContext().getObject()

  • In the Custom Contacts widget – selecting a Customer list item publishes the event on the EventBus – providing the customer address as the search term.
  • Var eventBus = sap.ui.getCore().getEventBus() ĮventBus.subscribe("google.maps", "location-change", (this), this) ĮventBus.subscribe("google.maps", "location-search-and-change",
  • The Google Map widget subscribes to two site events – one of them provides the longitude and latitude of the location to display and the other searches the address using the Google Destination APIs to find the searched address coordinates.
  • The Google Map script is loaded once with the API Key provided by the Portal admin.
  • Read here for more information about the widget settings and the supported APIs. The Google Map widget has a custom widget settings UI for an extended configuration scenario.

    google earth widget

  • Widget Settings – the Customer Contact list includes the default key-value widget settings UI.
  • GOOGLE EARTH WIDGET CODE

    Some words about the code used to implement these widgets. Now that widgets are set on the portal site page you can publish the site and view the its runtime.You can go ahead and change additional widget settings – In the Google Map Configuration settings you can search for a different location to display, change the map zoom level, and set the widget height.Enter the Google API key and click on Submit Key – notice that the map is loaded in the widget.Click OK to apply the changes.Click on the Google Map widget to open the widget settings.

    google earth widget

  • Click on the Customer Contact widget to open the widget settings and set the widget height.
  • Notice that if you configured the northwind destination properly – you should be able to see the list of customers in the Customer Contacts widget.
  • Once the widgets are added you can design their appearance on the page using the section settings editor.
  • Search and select the Customer Contacts and Google Map widgets to add them to the page.
  • Click on the + icon in one of the site pages sections to open the widget gallery.
  • To create a content-rich portal site, with a Launchpad page, Fiori apps, and ABAP WD app – follow this 9-step portal mission.
  • Create a Portal site – to create a new multi-page portal site, follow the steps described here.
  • – Deploy the widgets to your SAP Cloud Platform account. – Upload the two widgets available under this folder to your SAP Web IDE

    GOOGLE EARTH WIDGET DOWNLOAD

  • Get the source code – follow the steps described here under Download and Installation to.
  • The SAP Cloud Portal samples are available in our sample GitHub repository. You can follow the steps in the first part of this blog
  • Create a destination named northwind – connecting to the Northwind OData API on your SAP Cloud Platform account.
  • Follow these instructions to obtain a Google API Key.
  • The API p rovides eventing capabilities for applications like firing events and attaching or detaching event handlers for events which are notified when events are fired. This is done using the SAPUI5 Eventbus API. The widgets are two separate SAPUI5 apps that communicate with each other, so when an end user selects a customer from the Customer Contacts widget – his address location is displayed on the Google Map widget.

    google earth widget

    Customer Contacts widget – a list of customers retrieved from the Northwind public OData service.Google Maps widget – displaying a selected location on a Google map.In this blog we will create two Portal widgets: With the SAP Cloud Portal customers can create great looking access points that bring all these applications together into one comprehensive business solution. If you have further questions, contact us under the SAP Cloud Platform its pretty straight forward to build applications and enhance their capabilities through integration with SAP and 3rd party solution and systems. Note that our public GitHub repository, providing code samples for Cloud Portal on the Neo environment, is not available anymore.










    Google earth widget