{"action":"created","comment":{"url":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/comments/24472033","id":24472033,"diff_hunk":"@@ -0,0 +1,316 @@\n+package com.google.maps.android.geojson;\n+\n+import com.google.android.gms.maps.model.BitmapDescriptor;\n+import com.google.android.gms.maps.model.MarkerOptions;\n+\n+import java.util.Observable;\n+\n+/**\n+ * A class that allows for GeoJsonPoint objects to be styled and for these styles to be translated\n+ * into a MarkerOptions object. {@see\n+ * <a href=\"https://developer.android.com/reference/com/google/android/gms/maps/model/MarkerOptions.html\">\n+ * MarkerOptions docs</a> for more details about the options.}\n+ */\n+public class GeoJsonPointStyle extends Observable implements GeoJsonStyle {\n+\n+    private final static String GEOMETRY_TYPE_REGEX = \"Point|MultiPoint|GeometryCollection\";\n+\n+    private final MarkerOptions mMarkerOptions;\n+\n+\n+    /**\n+     * Creates a new PointStyle object\n+     */\n+    public GeoJsonPointStyle() {\n+        mMarkerOptions = new MarkerOptions();\n+    }\n+\n+    /**\n+     * Gets the type of geometries this style can be applied to\n+     *\n+     * @return type of geometries this style can be applied to\n+     */\n+    @Override\n+    public String getGeometryType() {\n+        return GEOMETRY_TYPE_REGEX;\n+    }\n+\n+    /**\n+     * Gets the alpha of the GeoJsonPoint. This is a value from 0 to 1, where 0 means the marker is\n+     * completely transparent and 1 means the marker is completely opaque.\n+     *\n+     * @return alpha of the GeoJsonPoint\n+     */\n+    public float getAlpha() {\n+        return mMarkerOptions.getAlpha();\n+    }\n+\n+    /**\n+     * Sets the alpha of the GeoJsonPoint. This is a value from 0 to 1, where 0 means the marker is\n+     * completely transparent and 1 means the marker is completely opaque.\n+     *\n+     * @param alpha alpha value of the GeoJsonPoint\n+     */\n+    public void setAlpha(float alpha) {\n+        mMarkerOptions.alpha(alpha);\n+        styleChanged();\n+    }\n+\n+    /**\n+     * Gets the Anchor U coordinate of the GeoJsonPoint. Normalized to [0, 1], of the anchor from\n+     * the left edge. This is equivalent to the same U value used in {@link\n+     * com.google.android.gms.maps.model.MarkerOptions#getAnchorU()}.\n+     *\n+     * @return Anchor U coordinate of the GeoJsonPoint\n+     */\n+    public float getAnchorU() {\n+        return mMarkerOptions.getAnchorU();\n+    }\n+\n+    /**\n+     * Gets the Anchor V coordinate of the GeoJsonPoint. Normalized to [0, 1], of the anchor from\n+     * the top edge. This is equivalent to the same V value used in {@link\n+     * com.google.android.gms.maps.model.MarkerOptions#getAnchorV()}.\n+     *\n+     * @return Anchor V coordinate of the GeoJsonPoint\n+     */\n+    public float getAnchorV() {\n+        return mMarkerOptions.getAnchorV();\n+    }\n+\n+    /**\n+     * Sets the Anchor U and V coordinates of the GeoJsonPoint. The anchor point is specified in\n+     * the\n+     * continuous space [0.0, 1.0] x [0.0, 1.0], where (0, 0) is the top-left corner of the image,\n+     * and (1, 1) is the bottom-right corner. The U & V values are the same U & V values used in","path":"library/src/com/google/maps/android/geojson/GeoJsonPointStyle.java","position":null,"original_position":85,"commit_id":"6e0033e28c38cc7a6175f1b3f809c3486c332554","original_commit_id":"39fc096638f51a7d0bbb6d284939df2402cbdb61","user":{"login":"juliawong","id":1804284,"avatar_url":"https://avatars.githubusercontent.com/u/1804284?v=3","gravatar_id":"","url":"https://api.github.com/users/juliawong","html_url":"https://github.com/juliawong","followers_url":"https://api.github.com/users/juliawong/followers","following_url":"https://api.github.com/users/juliawong/following{/other_user}","gists_url":"https://api.github.com/users/juliawong/gists{/gist_id}","starred_url":"https://api.github.com/users/juliawong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliawong/subscriptions","organizations_url":"https://api.github.com/users/juliawong/orgs","repos_url":"https://api.github.com/users/juliawong/repos","events_url":"https://api.github.com/users/juliawong/events{/privacy}","received_events_url":"https://api.github.com/users/juliawong/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-02-11T03:11:04Z","updated_at":"2015-02-11T03:11:04Z","html_url":"https://github.com/juliawong/android-maps-utils/pull/5#discussion_r24472033","pull_request_url":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/comments/24472033"},"html":{"href":"https://github.com/juliawong/android-maps-utils/pull/5#discussion_r24472033"},"pull_request":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/5","id":28893540,"html_url":"https://github.com/juliawong/android-maps-utils/pull/5","diff_url":"https://github.com/juliawong/android-maps-utils/pull/5.diff","patch_url":"https://github.com/juliawong/android-maps-utils/pull/5.patch","issue_url":"https://api.github.com/repos/juliawong/android-maps-utils/issues/5","number":5,"state":"open","locked":false,"title":"GeoJSON Review","user":{"login":"juliawong","id":1804284,"avatar_url":"https://avatars.githubusercontent.com/u/1804284?v=3","gravatar_id":"","url":"https://api.github.com/users/juliawong","html_url":"https://github.com/juliawong","followers_url":"https://api.github.com/users/juliawong/followers","following_url":"https://api.github.com/users/juliawong/following{/other_user}","gists_url":"https://api.github.com/users/juliawong/gists{/gist_id}","starred_url":"https://api.github.com/users/juliawong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliawong/subscriptions","organizations_url":"https://api.github.com/users/juliawong/orgs","repos_url":"https://api.github.com/users/juliawong/repos","events_url":"https://api.github.com/users/juliawong/events{/privacy}","received_events_url":"https://api.github.com/users/juliawong/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-09T02:59:10Z","updated_at":"2015-02-11T03:11:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"juliawong","id":1804284,"avatar_url":"https://avatars.githubusercontent.com/u/1804284?v=3","gravatar_id":"","url":"https://api.github.com/users/juliawong","html_url":"https://github.com/juliawong","followers_url":"https://api.github.com/users/juliawong/followers","following_url":"https://api.github.com/users/juliawong/following{/other_user}","gists_url":"https://api.github.com/users/juliawong/gists{/gist_id}","starred_url":"https://api.github.com/users/juliawong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliawong/subscriptions","organizations_url":"https://api.github.com/users/juliawong/orgs","repos_url":"https://api.github.com/users/juliawong/repos","events_url":"https://api.github.com/users/juliawong/events{/privacy}","received_events_url":"https://api.github.com/users/juliawong/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/5/commits","review_comments_url":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/5/comments","review_comment_url":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/comments/{number}","comments_url":"https://api.github.com/repos/juliawong/android-maps-utils/issues/5/comments","statuses_url":"https://api.github.com/repos/juliawong/android-maps-utils/statuses/6e0033e28c38cc7a6175f1b3f809c3486c332554","head":{"label":"juliawong:geojson","ref":"geojson","sha":"6e0033e28c38cc7a6175f1b3f809c3486c332554","user":{"login":"juliawong","id":1804284,"avatar_url":"https://avatars.githubusercontent.com/u/1804284?v=3","gravatar_id":"","url":"https://api.github.com/users/juliawong","html_url":"https://github.com/juliawong","followers_url":"https://api.github.com/users/juliawong/followers","following_url":"https://api.github.com/users/juliawong/following{/other_user}","gists_url":"https://api.github.com/users/juliawong/gists{/gist_id}","starred_url":"https://api.github.com/users/juliawong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliawong/subscriptions","organizations_url":"https://api.github.com/users/juliawong/orgs","repos_url":"https://api.github.com/users/juliawong/repos","events_url":"https://api.github.com/users/juliawong/events{/privacy}","received_events_url":"https://api.github.com/users/juliawong/received_events","type":"User","site_admin":false},"repo":{"id":27356280,"name":"android-maps-utils","full_name":"juliawong/android-maps-utils","owner":{"login":"juliawong","id":1804284,"avatar_url":"https://avatars.githubusercontent.com/u/1804284?v=3","gravatar_id":"","url":"https://api.github.com/users/juliawong","html_url":"https://github.com/juliawong","followers_url":"https://api.github.com/users/juliawong/followers","following_url":"https://api.github.com/users/juliawong/following{/other_user}","gists_url":"https://api.github.com/users/juliawong/gists{/gist_id}","starred_url":"https://api.github.com/users/juliawong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliawong/subscriptions","organizations_url":"https://api.github.com/users/juliawong/orgs","repos_url":"https://api.github.com/users/juliawong/repos","events_url":"https://api.github.com/users/juliawong/events{/privacy}","received_events_url":"https://api.github.com/users/juliawong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juliawong/android-maps-utils","description":"Handy extensions to the Google Maps Android API.","fork":true,"url":"https://api.github.com/repos/juliawong/android-maps-utils","forks_url":"https://api.github.com/repos/juliawong/android-maps-utils/forks","keys_url":"https://api.github.com/repos/juliawong/android-maps-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juliawong/android-maps-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juliawong/android-maps-utils/teams","hooks_url":"https://api.github.com/repos/juliawong/android-maps-utils/hooks","issue_events_url":"https://api.github.com/repos/juliawong/android-maps-utils/issues/events{/number}","events_url":"https://api.github.com/repos/juliawong/android-maps-utils/events","assignees_url":"https://api.github.com/repos/juliawong/android-maps-utils/assignees{/user}","branches_url":"https://api.github.com/repos/juliawong/android-maps-utils/branches{/branch}","tags_url":"https://api.github.com/repos/juliawong/android-maps-utils/tags","blobs_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juliawong/android-maps-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/juliawong/android-maps-utils/languages","stargazers_url":"https://api.github.com/repos/juliawong/android-maps-utils/stargazers","contributors_url":"https://api.github.com/repos/juliawong/android-maps-utils/contributors","subscribers_url":"https://api.github.com/repos/juliawong/android-maps-utils/subscribers","subscription_url":"https://api.github.com/repos/juliawong/android-maps-utils/subscription","commits_url":"https://api.github.com/repos/juliawong/android-maps-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/juliawong/android-maps-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/juliawong/android-maps-utils/issues/comments/{number}","contents_url":"https://api.github.com/repos/juliawong/android-maps-utils/contents/{+path}","compare_url":"https://api.github.com/repos/juliawong/android-maps-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juliawong/android-maps-utils/merges","archive_url":"https://api.github.com/repos/juliawong/android-maps-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juliawong/android-maps-utils/downloads","issues_url":"https://api.github.com/repos/juliawong/android-maps-utils/issues{/number}","pulls_url":"https://api.github.com/repos/juliawong/android-maps-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/juliawong/android-maps-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/juliawong/android-maps-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juliawong/android-maps-utils/labels{/name}","releases_url":"https://api.github.com/repos/juliawong/android-maps-utils/releases{/id}","created_at":"2014-12-01T00:55:10Z","updated_at":"2015-02-11T01:53:25Z","pushed_at":"2015-02-11T03:11:01Z","git_url":"git://github.com/juliawong/android-maps-utils.git","ssh_url":"git@github.com:juliawong/android-maps-utils.git","clone_url":"https://github.com/juliawong/android-maps-utils.git","svn_url":"https://github.com/juliawong/android-maps-utils","homepage":"http://googlemaps.github.io/android-maps-utils/","size":4905,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"new"}},"base":{"label":"juliawong:master","ref":"master","sha":"a975eb2397fa1d7f2307a5bf5c447232d40dfb35","user":{"login":"juliawong","id":1804284,"avatar_url":"https://avatars.githubusercontent.com/u/1804284?v=3","gravatar_id":"","url":"https://api.github.com/users/juliawong","html_url":"https://github.com/juliawong","followers_url":"https://api.github.com/users/juliawong/followers","following_url":"https://api.github.com/users/juliawong/following{/other_user}","gists_url":"https://api.github.com/users/juliawong/gists{/gist_id}","starred_url":"https://api.github.com/users/juliawong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliawong/subscriptions","organizations_url":"https://api.github.com/users/juliawong/orgs","repos_url":"https://api.github.com/users/juliawong/repos","events_url":"https://api.github.com/users/juliawong/events{/privacy}","received_events_url":"https://api.github.com/users/juliawong/received_events","type":"User","site_admin":false},"repo":{"id":27356280,"name":"android-maps-utils","full_name":"juliawong/android-maps-utils","owner":{"login":"juliawong","id":1804284,"avatar_url":"https://avatars.githubusercontent.com/u/1804284?v=3","gravatar_id":"","url":"https://api.github.com/users/juliawong","html_url":"https://github.com/juliawong","followers_url":"https://api.github.com/users/juliawong/followers","following_url":"https://api.github.com/users/juliawong/following{/other_user}","gists_url":"https://api.github.com/users/juliawong/gists{/gist_id}","starred_url":"https://api.github.com/users/juliawong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliawong/subscriptions","organizations_url":"https://api.github.com/users/juliawong/orgs","repos_url":"https://api.github.com/users/juliawong/repos","events_url":"https://api.github.com/users/juliawong/events{/privacy}","received_events_url":"https://api.github.com/users/juliawong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juliawong/android-maps-utils","description":"Handy extensions to the Google Maps Android API.","fork":true,"url":"https://api.github.com/repos/juliawong/android-maps-utils","forks_url":"https://api.github.com/repos/juliawong/android-maps-utils/forks","keys_url":"https://api.github.com/repos/juliawong/android-maps-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juliawong/android-maps-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juliawong/android-maps-utils/teams","hooks_url":"https://api.github.com/repos/juliawong/android-maps-utils/hooks","issue_events_url":"https://api.github.com/repos/juliawong/android-maps-utils/issues/events{/number}","events_url":"https://api.github.com/repos/juliawong/android-maps-utils/events","assignees_url":"https://api.github.com/repos/juliawong/android-maps-utils/assignees{/user}","branches_url":"https://api.github.com/repos/juliawong/android-maps-utils/branches{/branch}","tags_url":"https://api.github.com/repos/juliawong/android-maps-utils/tags","blobs_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juliawong/android-maps-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/juliawong/android-maps-utils/languages","stargazers_url":"https://api.github.com/repos/juliawong/android-maps-utils/stargazers","contributors_url":"https://api.github.com/repos/juliawong/android-maps-utils/contributors","subscribers_url":"https://api.github.com/repos/juliawong/android-maps-utils/subscribers","subscription_url":"https://api.github.com/repos/juliawong/android-maps-utils/subscription","commits_url":"https://api.github.com/repos/juliawong/android-maps-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/juliawong/android-maps-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/juliawong/android-maps-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/juliawong/android-maps-utils/issues/comments/{number}","contents_url":"https://api.github.com/repos/juliawong/android-maps-utils/contents/{+path}","compare_url":"https://api.github.com/repos/juliawong/android-maps-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juliawong/android-maps-utils/merges","archive_url":"https://api.github.com/repos/juliawong/android-maps-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juliawong/android-maps-utils/downloads","issues_url":"https://api.github.com/repos/juliawong/android-maps-utils/issues{/number}","pulls_url":"https://api.github.com/repos/juliawong/android-maps-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/juliawong/android-maps-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/juliawong/android-maps-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juliawong/android-maps-utils/labels{/name}","releases_url":"https://api.github.com/repos/juliawong/android-maps-utils/releases{/id}","created_at":"2014-12-01T00:55:10Z","updated_at":"2015-02-11T01:53:25Z","pushed_at":"2015-02-11T03:11:01Z","git_url":"git://github.com/juliawong/android-maps-utils.git","ssh_url":"git@github.com:juliawong/android-maps-utils.git","clone_url":"https://github.com/juliawong/android-maps-utils.git","svn_url":"https://github.com/juliawong/android-maps-utils","homepage":"http://googlemaps.github.io/android-maps-utils/","size":4905,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"new"}},"_links":{"self":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/5"},"html":{"href":"https://github.com/juliawong/android-maps-utils/pull/5"},"issue":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/issues/5"},"comments":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/juliawong/android-maps-utils/statuses/6e0033e28c38cc7a6175f1b3f809c3486c332554"}}}}