Hi bratliff,
really appreaciate your patience. Currently I'm doing
var polygon = new GPolygon(points, "#000000", 1, .5, color, .5);
map.addOverlay(polygon);
and this works.
Now I was trying to substitute the sequence above (as suggested in your
sample) with:
poly = Packer(points,{color:"#000000",opacity:1,weight:1});
var polygon = new
GPolygon.fromEncoded({polylines:poly,color:color,opacity:0.5,fill:true,outline:true},{clickable:true});
map.addOverlay(polygon);
but this fails and a subsequent
return polygon.getVertexCount();
returns NAN.
points is of e.g. (comes from a webservice):
- points {...} Object
- [0] {...} Object
__type "Google+point" String
x 9.94840704 Double
y 51.80422212 Double
+ [1] {...} Object
+ [2] {...} Object
This results in:
- poly {...} Object
color "#FF0000" String
levels
"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"
String
numLevels 6 Long
opacity 1 Long
points
"k_e{ho...@?xadt~u@dk...@tzu}@v...@sk@r]nzcd_auild`j...@rv~j@|h...@fb`v@fctjbazdbazdpgjvb...@djjrddva@xabluvjuvjuvh...@z@x...@yanscp@h...@aurve]xe}ql@_aabpafc...@lg?|ThGnD`AnD`A|i`cfzid...@v@ixezehbstlual...@lbtvat@bcl...@z|@hbh...@kkdqeercq@faufa[dhabzoyilgmddcwa...@`ak@bdggcoze...@bk@u...@r@ma?odw...@n@{...@{co{@dfa}fhhsptc{ghamchamcpdaate...@qva_@`JeC|ydghd}i...@~e_`@tqarrcuctcycjhqh?y...@?m@?...@qj@iv...@oby\ici\izyykakaaam@uvccqfawe...@waeoxd_ax_@h...@j_av_atcg|a...@tuquiiewf@g...@ea@cl_...@gqep@qc...@abc@abgaeechowg...@ip@wnglb[oldjmld...@peapsicyy`a{[aloiww{@irowcoyc]shng{zq...@}ba`@?...@sa_a@_zczdeg...@cc@ptcikanc}sx{b}cbsma...@~cif@g...@spayhdg@e...@hjajb@d}Br_@|r...@{axb@o...@udttau~g@q]?cS|tsb?ard}...@gl`wsm@p...@aia`pas@vA"
String
weight 1 Long
zoomFactor 16 Long
The polygon is created but not displayed probably...
Probably it's too late over here to bite this for me :)
Regards
bratliff schrieb:
> On Dec 22, 9:32 pm, "Neil.Young" <[email protected]> wrote:
>
>
>> The result is empty, as it seems.
>>
>
> I added another demo:
>
> www.polyarc.us/polypacker
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---