Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markers not appearing #59

Closed
ritz078 opened this issue May 18, 2014 · 5 comments
Closed

Markers not appearing #59

ritz078 opened this issue May 18, 2014 · 5 comments

Comments

@ritz078
Copy link

ritz078 commented May 18, 2014

I have a search result page where i show the results based on the input entered in the homepage.The page redirects from the home page.But after redirecting even the map loads but not the markers.But when i reload the page they appear. What is the problem???
PS: The issue is on chrome and is working fine on firefox.

@Artforge
Copy link

Artforge commented Aug 6, 2014

+1

@ad-james
Copy link

ad-james commented Sep 1, 2014

I'm having a similar problem to this, the map is loading but the markers/center coords are not, they work when I refresh the page.

@ritz078
Copy link
Author

ritz078 commented Sep 1, 2014

Load data after a delay.
In other words use $timeout.

@brocksamson
Copy link

Use the following snippet, this is fired after the map fully loads:

    $scope.$on('gmMapIdle', function(event, mapId){
        if(mapId === 'putYourMapIdHere'){
            //load data here
        }
    }

On Mon, Sep 1, 2014 at 11:56 AM, Ritesh Kumar notifications@github.com
wrote:

Load data after a delay.
In other words use $timeout.


Reply to this email directly or view it on GitHub
#59 (comment)
.

@dylanfprice
Copy link
Owner

brocksamson got it, you have to wait for the map to initialize before doing anything with it. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants