Google Maps - disable search box - google-maps

I am using google maps to diplay driving directions to a dynamic location that is pulled from a database. The call to google looks like this
http://maps.google.com/?q=dynamicaddress
I have been trying to find a way to disable the search box on the top of the page and also remove the top black bar that is there by default.
I want the user to stay in the maps page and not wander to google search and potentially land in an unsafe site.
Thanks!
SMJ

Related

AutocompleteService and Powered by Google

I want to know if I should put Powered by Google when I use AutocompleteService and not Autocomplete to built my dropdown address list when users search something!
I know if I have google map in the same page I can omit logo in the dropdown result.
I believe this is explained pretty much good in the Places API Policies document:
https://developers.google.com/places/web-service/policies
Logo Requirements
If your application displays Google Places API Web Service data on a page or view that does not also display a Google Map, you must show a "Powered by Google" logo with that data. For example, if your application displays a list of places on one tab, and a Google Map with those places on another tab, the first tab must show the "Powered by Google" logo.
So, for the AutocompleteService of Google Maps JavaScript API (that internally will call the web service endpoint) just follow this policy. If you have Google maps on the same page you can omit the logo, if you don't have the map on the same page you must add the logo.
I hope this helps!

Google My Maps embed - expand layer filter

I'm embedding a Google "My Maps" like this one: http://borgensystems.com/contact-us/. In the top left corner, there's an expandable filter to turn layers off and on and click on them.
Is there a way to expand this by default on page load?
It looks like Google does not expose anything to control the visibility of the Legend.
Via details see https://support.google.com/maps/forum/AAAAQuUrST8HvcYeJ1BIuQ/?hl=en&gpf=d/topic/maps/HvcYeJ1BIuQ

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.

Adding google maps to webpage

I want to create one webpage with one textbox, one button and one div containing the google map. My use case is whenever I enter some address in textbox and click on the button the google map for that place should get rendered in that div. Can anybody please help?
You want to use the Google Maps API:
https://developers.google.com/maps/documentation/javascript/
and either the geocoding service:
https://developers.google.com/maps/documentation/javascript/geocoding
or autocomplete:
https://developers.google.com/maps/documentation/javascript/places#places_autocomplete
The samples linked there should give you plenty of code to draw on.

Has there been a change in Google maps for mobile?

I am having trouble getting Google Maps to work on my mobile website Here is my google maps direction page that i have been using for a while now. Here is the code in a txt file
The problem is that google maps doesn't show the route anymore but just the fronpage of google maps mobile.
Have there been some changes that i don't know about, this used to always work?
Thanks
Dave
make sure your form has a saddr and an eaddr fields (i have mine set to hidden) and change the form action just simply to "http://maps.google.com", no need for "m" or "directions", it'll just figure it all out now, which action it should take, based on the user agent I guess.
This will however, on mobile platforms, prompt an activity picker on android or launch google maps automatically on iPhone.
From what Im seeing at this point in the game, the onyl way around forcing anything is to write your own parser for the Google Directions API, using a combination of cURL and the json_decode function of PHP
:\ sadly