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 9276851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:57:06+00:00 2026-06-18T16:57:06+00:00

I know how to add point to map. private void addMarkertoMap() { LatLng MarkerPos

  • 0

I know how to add point to map.

private void addMarkertoMap() {

        LatLng MarkerPos = new LatLng (24.803751, 1.479969);

        googlemap.addMarker(new MarkerOptions()

        .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ROSE))
        .position(MarkerPos)
        );

But what if I have many points (hundreds) and I want to display them from GML or KML file? Is it posible in Google Maps Android API? Any help?

Thanks!

  • 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-18T16:57:07+00:00Added an answer on June 18, 2026 at 4:57 pm

    You could add just those markers that are currently visible on screen (though please note that you’ll want to keep track of those markers that you add on-screen so that you don’t add them over and over again. You may even want to remove those that are no longer visible)

    mMap.setOnCameraChangeListener(new OnCameraChangeListener() {
       @Override
       public void onCameraChange(CameraPosition position) {
          final LatLngBounds screenBounds = mMapView.getProjection().getVisibleRegion().latLngBounds;
          for (YourPoint point : mPoints) {
             if (screenBounds.contains(point.getLatLng()) {
                mMapView.addMarker(point.getLatLng());
             }
          } 
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone know if it is possible to add territory to map using map point
I've added ability for users to add new point on my google map. My
Any one know how to add custom map point/location (not pushpin) in Bing map
I know how to add the Google Map on my restaurant's webpage, but how
Anyone know how I can add a marker to an image (not a map)
I know add() adds the specified (signed) amount of time to the given time
Why does C++ need and use pointers? I know they add power to the
Possible Duplicate: Close mysql connection (PHP) Please help me, I not know where add
I know one can add event listener for window.error. However when working with Iframes,
I know I can add service behaviors with some XML configuration, but I'd like

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.