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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:40:02+00:00 2026-06-16T00:40:02+00:00

How can we add an object to a marker in the new Google Maps

  • 0

How can we add an object to a marker in the new Google Maps Android API v2?
So if we click on the InfoWindow, we can do something with the object?

public void addSpotOnMap(Spot spot) {
    getMap().addMarker(new MarkerOptions()
            .position(new LatLng(spot.getParseGeoPoint().getLatitude(), spot.getParseGeoPoint().getLongitude()))
            .title(spot.getName())
            .snippet(spot.getCategory())
            .draggable(false));

}

This sets the location, title and snippet for the object. But I want to be able to go to another activity about this specific Spot-object if I click on the InfoWindow

  • 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-16T00:40:03+00:00Added an answer on June 16, 2026 at 12:40 am

    Not really sure if this is the correct answer, but take a look at this blogpost I made about this problem:

    Since Marker is final, it’s this can easily be solved by linking the data with the Marker in a Map, for example HashMap<Marker, YourDataClass> or HashMap<Marker, String>

    Here’s a tutorial that explains all:
    http://bon-app-etit.blogspot.be/2012/12/add-informationobject-to-marker-in.html

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

Sidebar

Related Questions

So I know that you can add an object in java to something through
var point = new google.maps.LatLng(lat, lang);//Code for one marker if (type == 'CONTROLLER') {
since method Add() takes Object as an argument, can I add for example datatables,
Why should we add an object name to a QObject? I can still load
I can add a Conditional statement to a breakpoint, for instance arg0.startsWith(something) but i'd
Can someone please direct me on how I can add something similar to inputAccessoryView
I was playing with https://github.com/apneadiving/Google-Maps-for-Rails and i'd like to clear all the marker on
I have a problem cloning dynamic object with the code like this: public void
Hey I'm fooling around with google maps API, and at the moment I am
I've just begun using the Google Maps API (v3.0) and have had a good

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.