Custom google map for Webview Android - android

I am developing an Android restaurant app completely web-based. I am trying to add the address of the restaurant so that when you click on it the map opens within the application. I have tried to create my own custom google map and add locations and then reference the link text by simple <a href=http://www.google.com/mapmaker?gw=39...> tag.
However, this open the entire google page. How can i do away with search bar and rest of the content and just show the map. Thanks

Related

how to embed a custom map from google maps into an app

I created a custom map using Google Maps that has highlighted features of the local waterways around my boat company. The map is set to be shared publicly and can be found here: https://www.google.com/maps/#28.1159901,-80.5874005,10z/data=!3m1!4b1!4m2!6m1!1sztQRD4WV85yk.kzRrtK6ZMD3E
My question is can I embed this map on an app that I am developing through Como Mobile App Creator? The app already has a map page powered by Google maps but it just shows the location of the company on a standard Google map; I want to embed the custom map I created so that it shows up in the app.
The Como App Maker also features a custom page wherein you can add source code, and I got the source code from Google maps and tried to add it in there but the custom page just shows up blank in the app. Here is the source code I used: iframe src="https://mapsengine.google.com/map/u/0/embed?mid=ztQRD4WV85yk.kzRrtK6ZMD3E"width="640" height="480"
How do I embed my custom map on the app I am making?
One reason I can see is: mapsengine is deprecated and new mapsengine projects are not accepted anymore.
Potential solution steps:
1) Use My Maps instead of Maps Engine.
2) Create custom map by importing your map layer there.
3) Save that map and go to share. Make it public (pick & choose view only or can edit).
4) Click on options (drop down) menu on the right of where "Add Layer" and "Share" are and choose "Embed on my site". You will be provided with an iframe.
This will embed that custom map you just created in your app.
Few things to keep in mind:
My Maps are ideal only for
1) Less than 2500 map views per day.
2) The data in the map does not change very frequently.
3) However, the embedded map will reflect the changes (if any) made (by you or people who has edit permissions) to the map in My Maps.
EDIT:
I'm sorry I did not check the URL before. So I went to it now and loaded it in My Maps. I got this iframe. See snippet.
<iframe src="https://www.google.com/maps/d/embed?mid=ztQRD4WV85yk.kzRrtK6ZMD3E&hl=en" width="640" height="480"></iframe>
But I would still encourage to make it in My Maps if this one was made in mapsengine so it is still there after mapsengine is stopped altogether in January 2016 (see Deprecation notice here).
Hope this helped.

Display Google Maps as Part of Android App

How can we display google maps as part of android app ? I want to display google maps sharing screenspace with other elements like textbox and labels etc.Dont want maps to take up whole screen space.
You can create a Fragment inside of your Activity and inflate Google Maps into the Fragment programmatically.
Follow the link here to learn about working with Fragments:
Building a Dynamic UI with Fragments

Adding a HTML Content in a infoWindow

Hi Guys I am using Google Maps Android API v2. I loaded the Map and placed few Marker. I wanted to display a HTML URL in the "infoWindow" but Google seems to suggest its not possible https://developers.google.com/maps/documentation/android/infowindows#custom_info_windows. can it be done using "OnInfoWindowClickListener"? So that i open a dialogue box using this listener which contains a HTML URL?
I wanted to display a HTML URL in the "infoWindow" but Google seems to suggest its not possible
You can display pretty much whatever you want in an info window (though I have not tried anything that uses a SurfaceView). You cannot respond to clicks on anything other than then entire info window.
can it be done using "OnInfoWindowClickListener"? So that i open a dialogue box using this listener which contains a HTML URL?
You are welcome to do whatever you wish when the user clicks on an info window.

How to add search button on Android Google maps ?

I want to put the search button in google maps in Android application (like the way I added zoom controls). However, I am not able to find a way to add it.
If you want to add a search button, you have to implement a the Reverse Geocoding, using a GeoCoder that receives your searched Strings from a EditText so with the coordinates obtained you can set a geopoint in the MapOverlay to show the searched position on the map.
For more info about Google Maps geocoding see:
https://developers.google.com/maps/documentation/geocoding/
This question is too vague. What "search button" are you talking about? Do you mean a SearchView? There's a search widget in the maps.google.com web interface, but that's not the standard Android design. The Android Google Maps app uses a SearchView with history and autocomplete.

Google Map View, use "My places" map on android app

I would like to create an android app, which using Google Map View and display my own map.
I started my app from this link
http://developer.android.com/resources/tutorials/views/hello-mapview.html
But in step two I would like to add these POI points to my app:
http://maps.google.com/maps/ms?ie=UTF&msa=0&msid=203009957035125689590.0004abe0f3ee68f732c31
(This is the map of 'Budapest university of technology and economics' and I would like to create an app that everyone can download and navigate themselves to the right building)
Is it possible? If it is, how can I do that?
Thanks!
Greg.

Categories

Resources