Google Maps : create (short) URL to current view & location? - google-maps

Google Maps used to have a feature to create a link (short URL) to the current view and location. However that doesn't seem to be there anymore...?? Is that gone or how do I do that?
I mean not just a link to a specific search query, i.e. like maps.google.com/maps?q=<address> or maps.google.com/maps?q=<lat,lon>, but when moving around, having a certain view and zoom level and everything, you could do 'Create link'. With a checkbox 'create short URL` which resulted in URLs like http://goo.gl/maps/AbCdEf.
Anyone knows where I can find that feature now?

Left to the search box you'll find the following icon:
Here you find the option for sharing the link to the current view, also for short links.

It has changed in the latest version of Maps: If you click on the "Share" Icon in the route details section - it allows the same thing - select "Short URL" and off you go...

Related

How to implement Google map in Xamarin forms

I'm trying to make xamarin.forms app with google map on page.
Earlier I used Device.OpenUri, but as official documetation says: "This often navigates out of the application."
My goal is to stay in aplication and make exact the same page like this:
I can't find any good documentation or step by step tutoriel neighter...
Did you check Xamarin Forms Map? If you don't like how the default pins look like, you can define a template for them (check here).
In case you already have a link of google maps that you want to show, and you don't want to create it by yourself (solution from above), try with WebView and set URL to the link you have.

How to feed search results straight into Google Search?

If the title isn't clear, then hopefully this description will clear it up.
What I wanted was for a user to highlight a word on any given webpage and then that word will be searched up on Google Search (as in google.com). I have explored custom search engine but I dont need to create a whole other search engine. I just need to have whatever was highlighted to be searched up in a new tab. Is there a specific from Google for this?
Thanks for your time and help.
I will be using JavaScript if that matters.
Assuming you are using Google Chrome (as your tag indicates, to me anyways), highlighting a selection then right-click will give you the option to search with your default search engine and open the result in a new tab.
It is unclear exactly what functionality you want and what you are writing. Is it a Chrome extension?

How to Show Driving Directions on New Google Maps via URL Link

I have a simple Google Maps link on my site that opens a new page and loads the driving directions from our location to customer's address.
The link is something like
https://maps.google.ca/maps?saddr=[our address]&daddr=[customer address]&dirflg=d
Where [our address] is replaced with our address and [customer address] is replaced by the customer address. The Google Maps is loaded properly with the directions drawn out on the map but is there a way to expand the "List all steps" for the default selected direction on page load?
I'm guessing Google Maps will automatically load the "best" route when the page is loaded but currently the user has to manually click on the "List all steps" to view the step by step directions. I want it so that when the user clicks the link on my site then it'll automatically load the map directions along with the step by step directions already opened. Is there some kind of special URL parameter that I can pass to do this?
I've been looking for the same solution - If you are able to format the link in the following way this works:
https://www.google.com/maps/dir/[customer address]/[our address]/am=t/
It would be good to figure out how to submit it from a standard HTML form though.

Making Google Custom Search display results on a new tab

I am developing a website which has custom Google search bar embedded into it. My client wants a functionality that when a user searches something into that search box, a new page should open where he should be shown the result of his search. The current Google search bar displays the result just below it. Is there any way I can change to display the results in a new tab? Please help out. Thanks
I would recommend using the new Google Custom Search Widget. It provides a simple parameter to open the searched item in a new window. The method you are using is deprecated.
<gcse:searchbox-only resultsUrl="http://www.example.com" newWindow="true" queryParameterName="search">
For more information visit this.

Keeping several description balloons open at the same time in KML/Google Maps

So I defined a Maps overlay with several placemarks to visualize research I'm doing. The descriptions have the results in them, and all works nicely. But when I open a balloon, the previously opened one closes, so that there's no real possibility to compare the results over the different placemarks.
I looked at the KML FAQ for this, and it says it's not possible to have a description open when the KML is opened.[1] It also says to use feature anchors to have another balloon open when a first one is opened.[2] But this would mean I have a fixed set of balloons to open at the same time, while I'd like the viewer to decide which ones are open at any given time.
So is it possible to keep them from closing when I open another balloon? If not, is there another possibility to display text info for several places at the same where the viewer can decide on which placemarks are open?
[1] https://developers.google.com/kml/faq#balloonopenfile
[2] https://developers.google.com/kml/documentation/kmlreference#featureanchor
Here's on option:
When you create the KMLLayer, set the suppressInfoWindows option to false. Then add an event that captures the click event: [https://developers.google.com/maps/documentation/javascript/reference#KmlMouseEvent][1]
That gives you access to the featureData, [https://developers.google.com/maps/documentation/javascript/reference#KmlFeatureData][2]
which gives you access to the infoWindowHtml. With that, create your own InfoWindow at the latLng of the click. Create a new one for each click, so that they'll stay open.