Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7735207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:26:34+00:00 2026-06-01T07:26:34+00:00

I am a new android app developer and i want to use google map

  • 0

I am a new android app developer and i want to use google map in my application.When user clicks on marker it should display address for particular locations.I am usig longitude and latitude.This is my code-
`

    <!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <style type="text/css">
          html { height: 100% }
          body { height: 100%; margin: 0; padding: 0 }
          #map_canvas { height: 100% }
        </style>

        <script type="text/javascript"
          src="http://maps.googleapis.com/maps/api/js?key=AIzaSyA5wa4_VHXgAoUA9NOwlW-J-ibOuLc4Yaw&sensor=false">
        </script>



    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript">
      var map;
      function initialize() {
// sample longitude and latitude
        var locations = [
          ['Deolali',    20.022703,73.72811],
          ['Nasik Road',  20.02929,73.722362],
        ];
        var map_center = new google.maps.LatLng(20.022703,73.72811);
        var str='<h2>Deolali,Nasik Road,Nasik</h2>'
        var myOptions = {
          zoom: 10,
          center: map_center,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        }
        map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

         for (i = 0; i < locations.length; i++) {
        var store1 = new google.maps.LatLng(locations[i][1], locations[i][2]);

    var infowindow = new google.maps.InfoWindow({
        content: str
    });



            var marker1 = new google.maps.Marker({
            position: store1, 
            map: map, 
            title:"Store 1"
        });

        google.maps.event.addListener(marker1, 'click', function() {
          map.set_center(store1);
          map.set_zoom(16);
          marker1.openInfoWindowHtml('here I am');
          infowindow.open(map,marker);

        });
    }


      }
    </script>

      </head>
      <body onload="initialize()">
        <div id="map_canvas" style="width:100%; height:100%"></div>
      </body>
    </html>

`
Please help me out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:26:35+00:00Added an answer on June 1, 2026 at 7:26 am

    I used static map for may application and it really works nicely.This method uses HTML codes.You have to visit site http://maps.google.com/ and search for your city/state/country for which you want to use google map.After getting map search for your locations you want and save them as ‘save to map’. Once you have done then click on Link button in left side bar and you will get html code like this,///this is example code for google map of USA,

    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?msa=0&amp;msid=216854043611115490081.0004bc7afbd6561efbeb0&amp;ie=UTF8&amp;ll=43.075968,-107.290284&amp;spn=0,0&amp;t=h&amp;output=embed"></iframe><br /><small>View <a href="http://maps.google.com/maps/ms?msa=0&amp;msid=216854043611115490081.0004bc7afbd6561efbeb0&amp;ie=UTF8&amp;ll=43.075968,-107.290284&amp;spn=0,0&amp;t=h&amp;source=embed" style="color:#0000FF;text-align:left">My Saved Places</a> in a larger map</small>
    

    You have to just paste code like this in you html file and you will get static map image with your saved locations.One more thing you can add number of locations as much as you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new android app developer i want make app for tablets and phone
In my Android app, when a user clicks a button, I want it to
i am new App Developer with Titanium. i want to create a window base
I'm testing out the billing sample application provided by google: http://developer.android.com/guide/market/billing/index.html Everything is going
I want to develop an Android app that uses google maps heavily. So far
I have an application. I want to release this app in android market for
I'm a newbie Android App Developer, also new with xml. I was just wondering
I'm new to android development and I've developed a small app but I'm facing
I am pretty new to android app development and java and I encountered the
My android app project need to add a new function of saving the click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.