Extending "Share" options list on web google maps "share" dialog - google-maps

I'm building a chrome extension, and one functionality I'd like to add is to allow users sending selected lat/long to a 3rd party service. There is a standard UI for that ( click on a place -> details sidebar opens -> click share button -> share dialog appears ), but it only has 2 fixed services - facebook and twitter.
Is there a documented way of adding more items to that dialog? ( desktop web experience )

Related

In created application on Google's Developer Console How to create OAuth credentials?

I try to install
https://github.com/JoeDawson/youtube pluging
which demands
GOOGLE_CLIENT_ID=YOUR_CLIENT_ID
GOOGLE_CLIENT_SECRET=YOUR_SECRET
parameters.
To get them I created an application on Google's Developer Console as :
https://imgur.com/a/uF5XeDF
Is it correct place new project ?
But I did not find how to create OAuth credentials
But I did not find where have I to create GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET ?
Is it correct editor just after I have registered myself at Google's Developer Console and completed my Profile by filling questions by link
in confirmation email ?
You may check this blog on how to get Google app Client ID and Client Secret.
Login to Google Developer Console at https://console.developers.google.com using your google account credentials.
If you are not registered on Google developer account, then you need to accept agreement.
After accepting agreement or if you are already registered on Google developer account, you will see a screen as shown below. Click on “Select a project” on top header bar.
From the project selection popup click on the button with plus icon to add new project.
Enter your “Project name” and click on “Create” button.
It will open list page of API and Services. (you can also open this page from left side menu bar > “Library” menu)
From the list page search API with name “Google+ API” and click on the box with name “Google+ API”.
It will show the detail page of “Google+ API”, click on “Enable” button and it will return you back to dashboard.
From the dashboard click on “Credentials” from the left side menu.
From “Credentials” page click on “OAuth consent screen” tab and enter your website URL. Then click on “Save” button.
From the Credentials tab, click on “Create Credentials” dropdown and select “OAuth client ID”.
On OAuth client id creation screen:
Select the “Web Application” radio button from the “Application Type”.
Enter your application name in “Name” field. This name will be shown to end users when they are asked to give login permission to your website. So please specify meaningful name which can identify your website.
Enter your catalog site URL in “Authorized JavaScript origins”. For example, if website domain is yourdomain.com, enter http://yourdomain.com
In “Authorized redirect URIs” input box, enter your website URL + the page/end-point where you wanted your user redirected back. If you are using Microsoft.Owin.Security.Google library, the end-point is “/signin-google”. For example, my website url is http://yourdomain.com, so I enter http://yourdomain.com/signin-google
Click on “Create” Button.
It will display the popup with client id and client secret.
You may also follow this documentation on how to use OAuth 2.0 to access Google APIs.

Highlighting / Emphasizing Gmail-Addon

I am building a Gmail Add-On via Google App Scripts that will display provide helpful actions for emails with certain content.
Is there a way for me to highlight / emphasize / flash the icon for my Add-On (on the right hand sidebar)? This would let me notify the user that the Add-On can provide some functionality for the email they're reading.
As of now, there is no such functionality provided by Google team. The only way an add-on is activated by only user action(user has to click on the add ons icon from right side bar).

Download programmatically on Google Maps an offline area

I would like to know if there is a way to make my Android app trigger the download of an offline area in Google Maps app.
Yes, there is.
click the menu at the left side of the blank, choose 'offline map', you can choose the scope/granularity of the map.
If you are open to use other map services, I recommend to use HERE map, it can even calculate path without internet connection.

How to add an Google Chrome application to the taskbar?

I want to add to my application the ability to add it to the taskbar. Is there a API such an opportunity? Sorry for my english.
To my knowledge there is no API for this. When it's launched, it will appear on the taskbar, and then the user can right-click on the icon and pin it.
(I assume by "taskbar" you mean shortcuts/favorites icons on the taskbar)
Different OS's have different ways to do this.
On Linux, chrome apps are put in the start menu under a "Chrome Apps" group. From there, right-click to create shortcuts, add to panel, or favorites.
There doesn't appear to be an api to do this automatically: https://developer.chrome.com/apps/api_index
You're best bet may be to show the user how to access the app:
"Apps" on bookmark bar in Chrome
"Chrome Apps" in start menu

Google Chrome vs extension

I want to build app that would allow me to open website, select some data from this website and send them to my server. I imagine that it works in this way:
Application id displayed in browser sidebar sidebar
I open certain website
Select address (City) on opened website
Click "City" button on sidebar
"City" value is copied from website to sidebar
Select address (Zip code) in browser
Click "Zip code" button on side bar
"Zip code" value is copied from website to sidebar
... (and so on)
Finally I click "submit" button on sidebar and data is send to server.
What will be better option for such use case? Chrome app or chrome extension? I am not sure if there is way to display sidebar using chrome extension. I also haven't seen in reference option to open certain url in chrome app. Any advises will be appreciated.
I guess an extension would be more appropriate as it is just one click away from the website you want to select some data from. The user interaction could be done in various ways:
select text and use the context menu (right mouse click) to activate the extension logic
activate extension via toolbar and add UI as a part of the website being viewed or in a separate window
You can pop up a window, but it will disappear when you click back on the website. You can manually create a "sidebar" by having your extension open a new window whose url is inside the extension and subsequently manually placing it alongside the browser window.
Unfortunately there is no sidebar feature for chrome extensions. That would be cool if there were, though.