angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

[master]Window Issues

Open samward1985 opened this issue 12 years ago • 2 comments

Unclear as to how we get the default Google Map behavior of a single infowindow at a time.

Also, infowindows are now appearing on top of markers. How do we get those above the markers, as it previously was?

samward1985 avatar Dec 15 '13 21:12 samward1985

If your creating single static instances of windows then I recommend using . Actually windows will probably go away in the future as I do not see it necessary.

The key is to follow the API logic in i-markers.coffe

            @scope = {
                coords: '=coords', #required
                show: '=show', #defaults to undefined / false
                templateUrl: '=templateurl', #default is undefined
                templateParameter: '=templateparameter',#default is undefined
                isIconVisibleOnClick: '=isiconvisibleonclick',#default is true
                closeClick: '&closeclick', #scope glue to gmap InfoWindow closeclick
                options: '=options' #defaults to {} unless it is defined in the attribute
            }

The above attributes are necessary to create a Window where coords is required. isIconVisibleOnClick is the option that allows a marker to be visible still when it is clicked and window shows. Now in order to have the marker in-front you just need to pass some options into the options attribute using the zindex. See here. https://developers.google.com/maps/documentation/javascript/reference#InfoWindowOptions

nmccready avatar Dec 24 '13 01:12 nmccready

let me know if you need more help

nmccready avatar Dec 24 '13 01:12 nmccready