{"id":69,"date":"2009-02-06T11:34:32","date_gmt":"2009-02-06T09:34:32","guid":{"rendered":"http:\/\/blog.ansuz.nl\/?p=69"},"modified":"2009-02-06T11:36:55","modified_gmt":"2009-02-06T09:36:55","slug":"custom-graphic-for-google-maps-polyline","status":"publish","type":"post","link":"http:\/\/blog.ansuz.nl\/index.php\/2009\/02\/06\/custom-graphic-for-google-maps-polyline\/","title":{"rendered":"Custom graphic for Google maps polyline"},"content":{"rendered":"<p>I&#8217;ve been looking into the question wether or not it is possible to use a custom graphic for polylines (and\/or polygons) in Google Maps. The result so far is very promissing and the answer is yes!<\/p>\n<p><a href=\"http:\/\/ansuz.nl\/toys\/gmaps\/Main.swf\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ansuz.nl\/toys\/gmaps\/gmaps.jpg\" alt=\"Click to launch\" width=\"498\" height=\"373\" \/><\/a><\/p>\n<p><em>NOTE: right click and save as.. then run, as the gmaps API key used is not for this domain.<\/em><\/p>\n<p>The feet are taken from a MovieClip and repeated for the length of the line.<\/p>\n<p>I&#8217;ve achieved this by implementing the IPolyLine and IOverLay Interface. It took quite some figuring out to determine what each function was meant to do.<\/p>\n<p>TBC&#8230;<\/p>\n<p>TODO:<\/p>\n<ol>\n<li>Multi point line<\/li>\n<li>Exact line fill<\/li>\n<li>Flag for toggling image stretching \/ repeating<\/li>\n<li>Fixing a bug with Event dispatching<\/li>\n<\/ol>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been looking into the question wether or not it is possible to use a custom graphic for polylines (and\/or polygons) in Google Maps. The result so far is very promissing and the answer is yes! NOTE: right click and &hellip; <a href=\"http:\/\/blog.ansuz.nl\/index.php\/2009\/02\/06\/custom-graphic-for-google-maps-polyline\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[143,64],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-actionscript-30","tag-flex","tag-google-maps"],"_links":{"self":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":0,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}