Git Product home page Git Product logo

Comments (8)

broady avatar broady commented on May 23, 2024

Hi @dommerq - how can I reproduce this? Is this in the Clustering demo?

from android-maps-utils.

quentin23soleil avatar quentin23soleil commented on May 23, 2024

Well, I've put markers almost at the same LatLng, and it makes this : http://kentin.me/b54tq

from android-maps-utils.

cyrilmottier avatar cyrilmottier commented on May 23, 2024

@dommerq I have the impression you've started working on a clone of AVélov for Dublin ...

from android-maps-utils.

quentin23soleil avatar quentin23soleil commented on May 23, 2024

Hahaa @cyrilmottier I told you on Twitter. :P
Not exactly a clone though. Just a bike utility based on my experience among other Dublin Bikes apps (terrible).

from android-maps-utils.

broady avatar broady commented on May 23, 2024

This isn't a bug with BubbleIconFactory (now renamed TextIconGenerator, btw). That only produces Bitmaps!

It appears the Maps API does not pop out a marker if there is no InfoWindow for it (i.e. no snippet or title). You can work around this by always returning an (empty) InfoWindow.

Something like this:

    map.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
        @Override
        public View getInfoWindow(Marker marker) {
            // Empty info window.
            return new View(getApplicationContext());
        }

        @Override
        public View getInfoContents(Marker marker) {
            return null;
        }
    });

from android-maps-utils.

summera avatar summera commented on May 23, 2024

@broady I found that the empty view was preventing many of the onMarkerClickListener events from firing. Also, the overlapped markers weren't coming to the front. This seems to work better for me. Any idea why?

        map.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
            @Override
            public View getInfoWindow(Marker marker) {
                // Empty info window.
                TextView textView = new TextView(getActivity());
                textView.setText(" ");
                return textView;
            }

            @Override
            public View getInfoContents(Marker marker) {
                return null;
            }
        });

from android-maps-utils.

shaheerkhan12 avatar shaheerkhan12 commented on May 23, 2024

hey i really need to know if you can help with the logic ! condition: marker show and hide on zoom level as done in bookings.com maps view.... i came to know these markers show and hide on zoom level but if you look closely some of the markers hide because they overlap the other marker while zooming out so if you can help in teaching me how to do that or any kind of help that would be great

from android-maps-utils.

barbeau avatar barbeau commented on May 23, 2024

@shaheerkhan12 You might get a quicker response on StackOverflow with the tag google-maps. If you post there please link in this issue. Thanks!

from android-maps-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.