{"action":"created","issue":{"url":"https://api.github.com/repos/wf9a5m75/phonegap-googlemaps-plugin/issues/464","labels_url":"https://api.github.com/repos/wf9a5m75/phonegap-googlemaps-plugin/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/wf9a5m75/phonegap-googlemaps-plugin/issues/464/comments","events_url":"https://api.github.com/repos/wf9a5m75/phonegap-googlemaps-plugin/issues/464/events","html_url":"https://github.com/wf9a5m75/phonegap-googlemaps-plugin/issues/464","id":64875132,"number":464,"title":"Call to location.reload() removes custom marker icons.","user":{"login":"tycjones","id":5827356,"avatar_url":"https://avatars.githubusercontent.com/u/5827356?v=3","gravatar_id":"","url":"https://api.github.com/users/tycjones","html_url":"https://github.com/tycjones","followers_url":"https://api.github.com/users/tycjones/followers","following_url":"https://api.github.com/users/tycjones/following{/other_user}","gists_url":"https://api.github.com/users/tycjones/gists{/gist_id}","starred_url":"https://api.github.com/users/tycjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tycjones/subscriptions","organizations_url":"https://api.github.com/users/tycjones/orgs","repos_url":"https://api.github.com/users/tycjones/repos","events_url":"https://api.github.com/users/tycjones/events{/privacy}","received_events_url":"https://api.github.com/users/tycjones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wf9a5m75/phonegap-googlemaps-plugin/labels/need%20more%20information","name":"need more information","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-28T00:00:55Z","updated_at":"2015-03-30T20:38:24Z","closed_at":null,"body":"I'm trying to use custom marker icons.  The first time I load the map, the correct (custom) icons show.  Without getting into the full architecture of my app, I need to call location.reload() when the user chooses a new event.  After a location.reload, I load the view with the google map and all the icons are in the proper place and their info windows are correct.\r\n\r\nBut the custom icon images are not used.  Instead the default images are there.  I've tried many things including: map.remove(), iterate through all markers and manually remove/re-add them.  Nothing seems to work.  It appears that the plugin does not like calls to location.reload()?\r\n![img_1418](https://cloud.githubusercontent.com/assets/5827356/6877550/27436536-d48f-11e4-9b5c-6cc250fe3ee9.PNG)\r\n![img_1419](https://cloud.githubusercontent.com/assets/5827356/6878826/2dcaacbc-d4a2-11e4-812d-93a6c8fe2af8.PNG)\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10107411-call-to-location-reload-removes-custom-marker-icons?utm_campaign=plugin&utm_content=tracker%2F637500&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F637500&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/wf9a5m75/phonegap-googlemaps-plugin/issues/comments/87825082","html_url":"https://github.com/wf9a5m75/phonegap-googlemaps-plugin/issues/464#issuecomment-87825082","issue_url":"https://api.github.com/repos/wf9a5m75/phonegap-googlemaps-plugin/issues/464","id":87825082,"user":{"login":"tycjones","id":5827356,"avatar_url":"https://avatars.githubusercontent.com/u/5827356?v=3","gravatar_id":"","url":"https://api.github.com/users/tycjones","html_url":"https://github.com/tycjones","followers_url":"https://api.github.com/users/tycjones/followers","following_url":"https://api.github.com/users/tycjones/following{/other_user}","gists_url":"https://api.github.com/users/tycjones/gists{/gist_id}","starred_url":"https://api.github.com/users/tycjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tycjones/subscriptions","organizations_url":"https://api.github.com/users/tycjones/orgs","repos_url":"https://api.github.com/users/tycjones/repos","events_url":"https://api.github.com/users/tycjones/events{/privacy}","received_events_url":"https://api.github.com/users/tycjones/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T20:38:23Z","updated_at":"2015-03-30T20:38:23Z","body":"Upon further investigation I was able to isolate the issue to the icon png.  In your example, you used an icon hosted by google: http://www.google.com/intl/en_us/mapfiles/ms/icons/blue-dot.png\r\n\r\nWhen I used the same path (remote file), I had no issue.  But when I saved the file locally (it's the same file, just bundled in my www directory of the app), I had the issue.  Here's a demo:\r\n\r\nhttps://youtu.be/y7VLYWIy-fk"}}