SAPUI5 Googlemaps library : multiple markers via list - google-maps

i'm using the SAPUI5 Googlemaps library. It works great for one marker, but i need to add multiple markers based on a list. How can i add all these items to the map ?
<Map height="500px" zoom="10" lat="52,03838" lng="5,67866">
<markers> --> add items="{/GmapMarkers}" ????
<Marker lat="{lat}" lng="{lng}" info="{info}" />
</markers>
</Map>
Based on the items in /GmapMarkers i want to fill the map.
Is this possible ?
gr
Hans

I think you can use aggregation binding. Here is the example from http://jasper07.secondphase.com.au/openui5-googlemaps/. Look for Marker cluster.
<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:gmaps="openui5.googlemaps" controllerName="sampleController">
<gmaps:Map lat="33.408495" lng="-104.521889" width="950px" height="475px" zoom="4" zoomControl="true">
<gmaps:markerCluster>
<gmaps:MarkerCluster markers="{/features}">
<gmaps:markers>
<gmaps:Marker lat="{geometry/coordinates/1}" lng="{geometry/coordinates/0}" info="{properties/city}" icon="http://www.w3schools.com/googleapi/pinkball.png"></gmaps:Marker>
</gmaps:markers>
</gmaps:MarkerCluster>
</gmaps:markerCluster>
</gmaps:Map>
</mvc:View>

Related

How to find ArrayList length after filtered in apache royale

This code snippet is from TDJ List
<j:Card>
<html:H3 text="Jewel List"/>
<j:List id="list" width="200" height="300" dataProvider="{simple}" change="onChange(event)"/>
<j:TextInput width="200">
<j:beads>
<j:TextPrompt prompt="filter list..."/>
<j:SearchFilterForList list="{list}"/>
</j:beads>
</j:TextInput>
<j:Label id="selected" html="{describeItem(list.selectedItem)}"/>
</j:Card>
There is j:SearchFilterForList
What i want to know is when its work (type some text on the filter textbox), how to find filtered list length?
Thankyou
Just use the new "length" property just recently added. Tour de Jewel was updated as well showing the use of this new bead property in the List examples.
<j:Label html="{'list filtered length: ' + filter.length}"/>
<j:TextInput>
<j:beads>
<j:TextPrompt prompt="filter list..."/>
<j:SearchFilterForList id="filter" list="{iconList}"/>
</j:beads>
</j:TextInput>
Notice that the filtering performed by this bead is only visual, and the underlaying dataProvider is not filtered itself. To get a filtered view of the dataProvider you should use ArrayListView API, that is similar to flex ListCollectionView with filterFuncion.

KML polygon only showing up in preview

I have a KML file and made a fusion table out of this.
In this fusion table there are a lot of polygons split one per row.
One of these rows contains following polygon:
<Polygon><outerBoundaryIs><LinearRing><coordinates>4.479382,50.95028 4.479507,50.950126
4.479653,50.949947 4.479828,50.949733 4.479941,50.949767 4.480345,50.94989
4.481543,50.948703 4.481571,50.948675 4.481519,50.94866 4.480786,50.948436
4.480783,50.948441 4.480592,50.948373 4.480443,50.948309 4.480426,50.948301
4.48037,50.948277 4.480279,50.948216 4.4801,50.948037 4.479825,50.948314
4.479676,50.94827 4.479665,50.948267 4.479372,50.948181 4.479354,50.948172
4.479263,50.948147 4.478968,50.948063 4.478968,50.948063 4.479273,50.947683
4.479597,50.947277 4.479316,50.947176 4.479985,50.946633 4.48004,50.946588
4.480702,50.946051 4.481081,50.945742 4.480946,50.945554 4.48053,50.945347
4.480373,50.945268 4.48022,50.94523 4.4797,50.945143 4.479497,50.945419
4.479086,50.945992 4.478416,50.945788 4.478309,50.94586 4.477876,50.946167
4.477888,50.946216 4.478038,50.946882 4.478071,50.946879 4.478114,50.947004
4.477663,50.947448 4.47719,50.947878 4.477133,50.94789 4.476584,50.948023
4.47635,50.948079 4.476282,50.948029 4.476294,50.948017 4.47655,50.947759
4.476747,50.947527 4.476918,50.947186 4.476921,50.94718 4.476921,50.94718
4.476904,50.947161 4.476581,50.947041 4.476363,50.946908 4.476222,50.946787
4.476051,50.946585 4.475605,50.945866 4.47549,50.945572 4.475423,50.945457
4.475364,50.94539 4.474899,50.944991 4.474282,50.944517 4.474209,50.944402
4.474138,50.944215 4.474213,50.944401 4.474226,50.944417 4.474245,50.944438
4.474257,50.944452 4.474373,50.944541 4.474784,50.944855 4.474974,50.94501
4.475605,50.944623 4.475823,50.94449 4.476053,50.944349 4.475823,50.94449
4.475605,50.944623 4.474974,50.94501 4.474994,50.945026 4.475337,50.945314
4.475401,50.945383 4.475425,50.945421 4.475484,50.945511 4.475508,50.945559
4.475722,50.945376 4.475722,50.945376 4.476277,50.944903 4.476722,50.944523
4.476722,50.944523 4.478126,50.944855 4.478927,50.945014 4.479182,50.944685
4.479257,50.944588 4.479497,50.944332 4.479054,50.943961 4.478219,50.943253
4.478219,50.943253 4.477985,50.942901 4.477974,50.942881 4.476116,50.943658
4.475724,50.943821 4.475724,50.943821 4.476116,50.943657 4.477974,50.942881
4.477965,50.942865 4.477951,50.942845 4.477827,50.94266 4.477601,50.942643
4.477213,50.942614 4.476788,50.942583 4.476351,50.94255 4.47554,50.942489
4.475353,50.942474 4.475177,50.942461 4.474992,50.942447 4.47476,50.942429
4.474371,50.942399 4.473767,50.942352 4.473618,50.94234 4.473541,50.942009
4.473515,50.941979 4.473484,50.941955 4.473466,50.941944 4.473466,50.941944
4.473266,50.941818 4.47304,50.941629 4.473026,50.94161 4.472923,50.941475
4.472819,50.941292 4.472751,50.941181 4.472589,50.940971 4.472509,50.940868
4.472509,50.940868 4.472432,50.940768 4.472339,50.940675 4.472162,50.940527
4.472162,50.940527 4.471742,50.940174 4.472401,50.93963 4.472366,50.939611
4.473093,50.93902 4.473464,50.938718 4.472916,50.938515 4.472513,50.938378
4.471592,50.938098 4.471244,50.937995 4.470833,50.937884 4.470064,50.938326
4.4695,50.938656 4.468968,50.938251 4.468085,50.937605 4.46806,50.937586
4.467965,50.937601 4.469422,50.939346 4.469097,50.939508 4.468961,50.939621
4.468698,50.939849 4.468132,50.940302 4.468183,50.940313 4.467443,50.940799
4.467906,50.941071 4.4668,50.941797 4.465734,50.942506 4.465885,50.942631
4.466098,50.942808 4.466295,50.942996 4.466558,50.943223 4.466796,50.943527
4.466924,50.943699 4.468189,50.943182 4.467658,50.942774 4.468189,50.943182
4.468567,50.943476 4.468929,50.943357 4.469033,50.943423 4.469124,50.94348
4.46917,50.943509 4.46958,50.943768 4.46959,50.943779 4.469809,50.943791
4.469926,50.943794 4.470095,50.943798 4.470091,50.943989 4.470367,50.944
4.470357,50.944179 4.470688,50.944282 4.470686,50.944356 4.471413,50.944393
4.471411,50.944426 4.471406,50.94448 4.471395,50.944563 4.471372,50.94472
4.471368,50.94479 4.471362,50.944879 4.470595,50.944846 4.470573,50.945072
4.471246,50.945107 4.471243,50.945132 4.471236,50.945187 4.471232,50.945217
4.471213,50.945361 4.471204,50.945436 4.471201,50.9455 4.470753,50.945483
4.470745,50.945539 4.470412,50.945523 4.470402,50.945614 4.470683,50.945626
4.470564,50.945961 4.471569,50.946406 4.473756,50.947496 4.474915,50.948073
4.475741,50.948419 4.47603,50.948576 4.476021,50.948603 4.475952,50.948722
4.475933,50.948755 4.475864,50.948863 4.475823,50.948991 4.475832,50.949016
4.475875,50.949131 4.475942,50.949248 4.475977,50.949288 4.476035,50.949352
4.476104,50.94943 4.476261,50.94961 4.476317,50.949747 4.476319,50.949765
4.478017,50.950223 4.478046,50.950188 4.478062,50.950177 4.478046,50.950188
4.478017,50.950223 4.477909,50.950351 4.477927,50.950353 4.47804,50.950367
4.478507,50.950432 4.478629,50.950483 4.478683,50.950515 4.479041,50.950728
4.479133,50.950609 4.479267,50.950437 4.479389,50.950282
4.479382,50.95028</coordinates></LinearRing></outerBoundaryIs><innerBoundaryIs>
<LinearRing><coordinates>4.476928,50.949872 4.477174,50.949495 4.47841,50.949804
4.478728,50.94943 4.47841,50.949804 4.477174,50.949495 4.476928,50.949872</coordinates>
</LinearRing></innerBoundaryIs><innerBoundaryIs><LinearRing>
<coordinates>4.476873,50.948207 4.477043,50.948046 4.477209,50.947887
4.477043,50.948046 4.476873,50.948207</coordinates></LinearRing></innerBoundaryIs>
<innerBoundaryIs><LinearRing><coordinates>4.470775,50.939605 4.470675,50.939524
4.470738,50.93956 4.470975,50.939657 4.47112,50.939715 4.47118,50.939738
4.471275,50.939784 4.471383,50.939849 4.471471,50.93992 4.471337,50.939852
4.470992,50.939709 4.470775,50.939605</coordinates></LinearRing></innerBoundaryIs>
<innerBoundaryIs><LinearRing><coordinates>4.469713,50.938817 4.469691,50.938801
4.469771,50.938851 4.469915,50.938942 4.46997,50.938977 4.470004,50.939003
4.469713,50.938817</coordinates></LinearRing></innerBoundaryIs></Polygon>
The problem with this polygon is that is it not showing up on the map?
But when I preview only this polygon it is :/
Does anyone experienced something similar or know a solution for this?
Thanks in advance!
You have some inner polygons that look like lines to me. Removing those might help as well as simplifying the outer boundary. KML with winding direction calculations
Remove the <innerBoundaryIs> tags and it displays for me

Google Maps v3: Z-Index issue with Multiple KML Layers

I've got a Google Maps (v3) map with 4 separate overlays, which are populated from 4 separate KML files. Three of the KML files only indicate points on the map which I render as different-colored (e.g. red, blue, yellow) Google makers. The third overlay contains multiple coordinates for polygons (i.e. building outlines).
The problem is that the polygons (building outlines) are on top of the markers in the other 3 overlays. I would like for the other three overlays (the markers) to be on top of the polygons.
This thread was returned by a google search so will note that google maps has added a zIndex specification for kml overlays, which should now be "the answer"
Add the KmlLayer for the polygons to the map first (you may need to wait for it to be rendered to ensure it is on the bottom). There are several feature requests to allow specifying the relative z-index of layers, but it hasn't been implemented.
hHere is a simple fix : Place elements in Folders specific to their layering needs give each Folder a TimeSpan - End where the end for layers that need to be most visible has a greater value than the others.
This example always positions sandtraps and tees above the hole polygon.
<Folder id="placemarks">
<TimeSpan><end>Wed Dec 31 15:59:59 PST 2012</end></TimeSpan>
<Placemark id="Hole_1"><name>Hole #1</name><styleUrl>#Hole</styleUrl><Polygon><outerBoundaryIs><LinearRing><coordinates>-122.91870161890983,45.483615855274756,0 -122.91865199804306,45.48361585527471,0 -122.91855275630951,45.483619616338856,0 -122.91794121265411,45.48370235968636,0 -122.91695952415466,45.483627138466375,0 -122.91472256183624,45.483218121324924,0 -122.91451670229435,45.483212949824846,0 -122.9143376648426,45.48322470323348,0 -122.91415393352508,45.48328488064735,0 -122.91402518749237,45.483354460702024,0 -122.91395008563995,45.48342404067077,0 -122.91389912366867,45.48350772457338,0 -122.91387498378753,45.48359328888462,0 -122.91387498378753,45.48368543492061,0 -122.91389375925064,45.48373808973069,0 -122.91392594575882,45.48377617041085,0 -122.91397422552109,45.48379920685918,0 -122.91409760713577,45.483826474479734,0 -122.91429609060287,45.48382083290416,0 -122.91442953050136,45.48381519132801,0 -122.91455760598182,45.48383399657965,0 -122.91581690311432,45.484202578244506,0 -122.91596710681915,45.48423454694876,0 -122.91628360748291,45.48424018848292,0 -122.91661083698272,45.48421950285486,0 -122.9167677462101,45.484191765296345,0 -122.91696421802044,45.484127122628124,0 -122.9171821475029,45.48403615263833,0 -122.9174154996872,45.48397879680701,0 -122.91756838560104,45.483983498106866,0 -122.91772797703743,45.48396140199421,0 -122.91793651878834,45.48391838506911,0 -122.91816920042038,45.483914859090184,0 -122.91850447654724,45.48388665125083,0 -122.91868150234222,45.48381895237883,0 -122.91873782873153,45.483689195980105,0 -122.91874051094055,45.483630899529764,0 -122.91870161890983,45.483615855274756,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
</Folder>
<Folder id="placemarks2">
<TimeSpan><end>Thu Mar 14 15:24:23 PDT 2013</end></TimeSpan>
<Placemark id="Overlay_104"><name>Sand</name><styleUrl>#Sand</styleUrl><Polygon><drawOrder>2</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91651293635368,45.484182832859304,0 -122.91652634739876,45.48417060952213,0 -122.91653171181679,45.48415368489706,0 -122.91653037071228,45.484138640781616,0 -122.91652366518974,45.48412359666217,0 -122.91650488972664,45.48411325382773,0 -122.916479408741,45.484101030475465,0 -122.91644051671028,45.484088807120536,0 -122.91640967130661,45.48408504608773,0 -122.91637346148491,45.48408128505467,0 -122.91634932160377,45.48408410582948,0 -122.91632384061813,45.484093508411206,0 -122.91630908846855,45.48411043305436,0 -122.91630372405052,45.484120775889316,0 -122.91630372405052,45.4841329992373,0 -122.91630908846855,45.48414522258262,0 -122.91632384061813,45.48415650566826,0 -122.91634261608124,45.48416308746718,0 -122.91636407375335,45.48416308746718,0 -122.91638284921646,45.48415932643931,0 -122.9164083302021,45.48415368489706,0 -122.91641905903816,45.48415838618231,0 -122.91641905903816,45.484166848494766,0 -122.91641235351562,45.4841771913194,0 -122.91642308235168,45.484184713372464,0 -122.91644051671028,45.484190354911604,0 -122.91645929217338,45.48419411593739,0 -122.9164807498455,45.48419411593739,0 -122.91650220751762,45.48418753414211,0 -122.91651293635368,45.484182832859304,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Overlay_105"><name>Sand</name><styleUrl>#Sand</styleUrl><Polygon><drawOrder>2</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91556611657142,45.48406247988558,0 -122.91557282209396,45.48407000195396,0 -122.91557148098945,45.48407940453805,0 -122.9155795276165,45.48409068763687,0 -122.91560500860214,45.484096329185405,0 -122.91562780737877,45.484095388927365,0 -122.91565462946892,45.48408786686237,0 -122.91567474603653,45.484074703246186,0 -122.91568011045456,45.48406153962695,0 -122.91568413376808,45.48404743574578,0 -122.91567742824554,45.484032391601964,0 -122.91566535830498,45.48401922797283,0 -122.91564390063286,45.48400982537872,0 -122.91560903191566,45.48400888511922,0 -122.915578186512,45.48400982537872,0 -122.91555404663086,45.484003243561915,0 -122.91551917791366,45.48399290070535,0 -122.91550442576408,45.48399384096513,0 -122.91547894477844,45.48400230330229,0 -122.9154534637928,45.48401734745415,0 -122.91544675827026,45.484030511083716,0 -122.9154534637928,45.4840511967811,0 -122.9154722392559,45.48406624091988,0 -122.91550174355507,45.48407658376298,0 -122.91552051901817,45.48407658376298,0 -122.91553929448128,45.48407094221243,0 -122.91555672883987,45.48406153962695,0 -122.91556611657142,45.48406247988558,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Overlay_106"><name>Sand</name><styleUrl>#Sand</styleUrl><Polygon><drawOrder>2</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91515573859215,45.48395717082267,0 -122.91517853736877,45.4839496487392,0 -122.9152013361454,45.48393742535144,0 -122.91521206498146,45.48392332143921,0 -122.91521072387695,45.48391109804572,0 -122.91520535945892,45.4838969941269,0 -122.91519463062286,45.483881949942905,0 -122.91516780853271,45.483872547325866,0 -122.91514366865158,45.483870666802275,0 -122.91511550545692,45.483875368111136,0 -122.91509807109833,45.483881949942905,0 -122.91507795453071,45.4838960538655,0 -122.91506186127662,45.483912038306876,0 -122.91506722569465,45.48392802274367,0 -122.91509538888931,45.483946827957645,0 -122.91512355208397,45.48395623056229,0 -122.91515573859215,45.48395717082267,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Overlay_107"><name>Sand</name><styleUrl>#Sand</styleUrl><Polygon><drawOrder>2</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91511282324791,45.483822713429426,0 -122.91509941220283,45.48381425106526,0 -122.9150739312172,45.483806728962705,0 -122.91505247354507,45.4837963860701,0 -122.91503503918648,45.48377946133259,0 -122.91501894593239,45.48375877553543,0 -122.91499882936477,45.48373714946662,0 -122.91497468948364,45.483731507882105,0 -122.91494384407997,45.48373338841033,0 -122.91491568088531,45.48374091052268,0 -122.91489824652672,45.48375501448059,0 -122.91489154100418,45.483775700279146,0 -122.91490226984024,45.48379450554396,0 -122.91491836309433,45.48380014712216,0 -122.91493713855743,45.483809549751285,0 -122.91493982076645,45.483824593954615,0 -122.91492909193039,45.4838499810386,0 -122.91494384407997,45.483870666802275,0 -122.91497200727463,45.48388759151238,0 -122.91500151157379,45.4838969941269,0 -122.91501760482788,45.4838960538655,0 -122.9150390625,45.483891352558366,0 -122.91507259011268,45.48387724863458,0 -122.9151101410389,45.48385656287332,0 -122.91511952877044,45.48383399657965,0 -122.91511282324791,45.483822713429426,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Overlay_108"><name>Sand</name><styleUrl>#Sand</styleUrl><Polygon><drawOrder>2</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91608780622482,45.483770058698454,0 -122.91611328721046,45.4837615963264,0 -122.91614949703216,45.48374561184236,0 -122.91618973016739,45.48374185078665,0 -122.9162085056305,45.48373432867442,0 -122.91622459888458,45.483714583125106,0 -122.9162286221981,45.48369389730411,0 -122.91621789336204,45.48367697253584,0 -122.91619643568992,45.48365816723179,0 -122.91616827249527,45.483648764577396,0 -122.9161387681961,45.48364500351523,0 -122.91610389947891,45.48364688404635,0 -122.91608646512031,45.48365628670105,0 -122.9160650074482,45.48367509200573,0 -122.91604354977608,45.48368355439079,0 -122.91601940989494,45.48367885306589,0 -122.91600063443184,45.48367039068013,0 -122.9159563779831,45.483652525639336,0 -122.9159215092659,45.483652525639336,0 -122.91589468717575,45.4836609880278,0 -122.91586250066757,45.48367885306589,0 -122.91585445404053,45.483710822067316,0 -122.91586384177208,45.48373244814623,0 -122.91588395833969,45.483744671578464,0 -122.91590943932533,45.48375125342547,0 -122.91592553257942,45.48375125342547,0 -122.91594296693802,45.4837559547443,0 -122.91598856449127,45.48377193922543,0 -122.91602477431297,45.483778521069254,0 -122.9160650074482,45.48377664054253,0 -122.91608780622482,45.483770058698454,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Overlay_110"><name>Sand</name><styleUrl>#Sand</styleUrl><Polygon><drawOrder>2</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91436985135078,45.48374185078668,0 -122.91438594460487,45.48373714946664,0 -122.91439533233642,45.48373432867442,0 -122.91441276669502,45.48372774682543,0 -122.9144261777401,45.48371364286071,0 -122.91443556547165,45.48369107650978,0 -122.91443020105362,45.48366568935417,0 -122.91441544890404,45.483644063249635,0 -122.91439935564995,45.483636541124355,0 -122.91436985135078,45.4836346605929,0 -122.91434168815613,45.483637481390076,0 -122.91432425379753,45.483648764577396,0 -122.91431620717048,45.483661928293095,0 -122.91432425379753,45.4836685101498,0 -122.9143363237381,45.483681673860886,0 -122.91432693600654,45.483689195980105,0 -122.91431084275245,45.4836844946557,0 -122.91430547833442,45.483674151740644,0 -122.91429877281189,45.48366380882366,0 -122.91427329182625,45.48366286855839,0 -122.91424110531807,45.4836713309453,0 -122.9142290353775,45.48367885306589,0 -122.91423439979553,45.48369295703935,0 -122.91423708200455,45.48370047915707,0 -122.9142290353775,45.48370706100927,0 -122.91421428322792,45.48370047915707,0 -122.91421696543693,45.48368825571527,0 -122.91421562433243,45.48367791280088,0 -122.91419014334678,45.48366004776248,0 -122.91413381695747,45.483641242452784,0 -122.91410431265831,45.483639361921455,0 -122.91409224271774,45.48364594378078,0 -122.91407749056816,45.48366474908892,0 -122.91407480835914,45.48368731545038,0 -122.9140841960907,45.48370706100927,0 -122.91413515806198,45.48374185078665,0 -122.91417136788368,45.48375501448059,0 -122.91420891880989,45.483759715799096,0 -122.91424512863159,45.483759715799096,0 -122.91430950164795,45.48374937289783,0 -122.91435107588768,45.483744671578464,0 -122.91436985135078,45.48374185078668,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Overlay_111"><name>Sand</name><styleUrl>#Sand</styleUrl><Polygon><drawOrder>2</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91445970535278,45.4834484876664,0 -122.91447043418884,45.48344002524603,0 -122.91448518633842,45.483429682286065,0 -122.9144985973835,45.483434383631746,0 -122.91450664401054,45.48344284605295,0 -122.91448786854744,45.483453189010504,0 -122.91446641087532,45.483468233309,0 -122.91446641087532,45.483485158139985,0 -122.91448518633842,45.48351148564473,0 -122.91453346610069,45.48353029099776,0 -122.91456162929535,45.48352935073025,0 -122.91460454463959,45.48352088832202,0 -122.9146420955658,45.483501142697925,0 -122.9146608710289,45.483471994382974,0 -122.9146608710289,45.48345600981676,0 -122.91465014219284,45.483441905784,0 -122.9146260023117,45.48342498094003,0 -122.9145884513855,45.48340711582141,0 -122.9145535826683,45.48338078826786,0 -122.91452139616012,45.483359162053965,0 -122.9144798219204,45.48334317745575,0 -122.91443422436714,45.48333847610246,0 -122.91440606117248,45.48334693853809,0 -122.91437655687332,45.483366684216264,0 -122.91436582803726,45.48338925069713,0 -122.91436985135078,45.48340523528229,0 -122.91438460350036,45.48342027959356,0 -122.91440740227699,45.48343908497702,0 -122.91442885994911,45.483447547397546,0 -122.91444763541221,45.483453189010504,0 -122.91445970535278,45.4834484876664,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Tee_Gold_1"><name>Gold Tee #1</name><styleUrl>#T_Gold</styleUrl><Polygon><drawOrder>3</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91861981153488,45.48369671809834,0 -122.9185326397419,45.48369389730411,0 -122.91852459311485,45.48377758080589,0 -122.91861176490783,45.483781341859235,0 -122.91861981153488,45.48369671809834,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Tee_Blue_1"><name>Blue Tee #1</name><styleUrl>#T_Blue</styleUrl><Polygon><drawOrder>3</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91848301887512,45.48376723790791,0 -122.9182630777359,45.48376347685363,0 -122.91826039552688,45.48383399657965,0 -122.91848167777061,45.48383681736685,0 -122.91848301887512,45.48376723790791,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Tee_White_1"><name>White Tee #1</name><styleUrl>#T_White</styleUrl><Polygon><drawOrder>3</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91820138692856,45.48381237053972,0 -122.91803240776062,45.483807669225584,0 -122.9180297255516,45.483889472035386,0 -122.91819736361503,45.4838951136041,0 -122.91820138692856,45.48381237053972,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Tee_Red_1"><name>Red Tee #1</name><styleUrl>#T_Red</styleUrl><Polygon><drawOrder>3</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91756972670555,45.48389041229689,0 -122.91743963956833,45.48388383046611,0 -122.9174356162548,45.483943066915344,0 -122.91756302118301,45.4839496487392,0 -122.91756972670555,45.48389041229689,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
<Placemark id="Fairway_1"><name>Fairway #1</name><styleUrl>#Fairway</styleUrl><Polygon><drawOrder>1</drawOrder><outerBoundaryIs><LinearRing><coordinates>-122.91679188609123,45.484095388927365,0 -122.91688308119774,45.48406247988558,0 -122.91699305176735,45.48399196044558,0 -122.91703060269356,45.48395058899968,0 -122.91704803705215,45.48389229281982,0 -122.91703596711159,45.48384621998984,0 -122.91699573397636,45.483819892641506,0 -122.91690856218338,45.48380202764812,0 -122.91676640510559,45.48378604317555,0 -122.91657462716102,45.483762536590014,0 -122.91647002100944,45.48374091052268,0 -122.91637882590294,45.48372586629701,0 -122.91633322834968,45.48372868708961,0 -122.91628360748291,45.48373902999469,0 -122.91620045900345,45.48376817817145,0 -122.91611194610595,45.48379262501775,0 -122.91604489088058,45.483802967911075,0 -122.91599795222282,45.48379826659618,0 -122.91580483317375,45.48375689500802,0 -122.91560634970665,45.48369953889241,0 -122.91538909077644,45.48362525793459,0 -122.91519597172737,45.48355003661168,0 -122.91507124900818,45.48350396350177,0 -122.91493311524391,45.483455069548036,0 -122.91485130786896,45.483441905784,0 -122.91478425264358,45.48344566685975,0 -122.91473060846329,45.48346823330902,0 -122.91463941335678,45.48352276885732,0 -122.91458979249,45.4836073928795,0 -122.91453614830971,45.48369483756887,0 -122.91458979249,45.483723045504256,0 -122.91463807225227,45.483744671578464,0 -122.91468098759651,45.48375031316168,0 -122.91472658514976,45.48374937289783,0 -122.91488617658615,45.48370894153833,0 -122.91493579745292,45.48370047915707,0 -122.91498005390167,45.48370706100927,0 -122.9150202870369,45.48372492603276,0 -122.91515305638313,45.483821773166774,0 -122.9152549803257,45.48390357595612,0 -122.91532203555107,45.48393648509073,0 -122.91538774967193,45.483960931864004,0 -122.91544407606125,45.48396751368577,0 -122.91560500860214,45.48397973706699,0 -122.91568279266357,45.4839957214846,0 -122.91588798165321,45.48404837600464,0 -122.91600063443184,45.48406342014418,0 -122.91615217924118,45.48407000195396,0 -122.91626617312431,45.48405777859231,0 -122.91635200381279,45.484049316263466,0 -122.91639894247055,45.48405307729866,0 -122.91657865047455,45.484099149959484,0 -122.91666179895401,45.48411325382773,0 -122.91679188609123,45.484095388927365,0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
</folder>

How to get kml file (Google Maps) using the link?

How to get Google maps kml file using link?
I tried
http://maps.google.com/maps?f=d&hl=en&saddr=-8.703893,115.223558&daddr=-8.36429800000000,115.461588000000&ie=UTF8&0&om=0&output=kml
but it returns Google maps view.
A month ago, I tried that step and got kml:
<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://earth.google.com/kml/2.2"><Document><name>R. de Viana do Castelo to R. de Sá da Bandeira</name><Style id="roadStyle"><LineStyle><color>7fcf0064</color><width>6</width></LineStyle></Style><Snippet><![CDATA[<font size=+1>Printable view</font>]]></Snippet><Placemark><name>Head west on R. de Viana do Castelo toward R. José Estêvão</name><description><![CDATA[go 100 m]]></description><address>R. de Viana do Castelo</address><StyleMap><Pair><key>normal</key><Style><IconStyle><Icon>
....
<coordinates>-8.429200,40.211490,0</coordinates></Point></Placemark><Placemark><name>Route</name><description><![CDATA[Distance: 68.4 km (about 49 mins)<br/>Map data ©2012 Google, Tele Atlas]]></description><GeometryCollection><LineString><coordinates>-8.652610,40.641880,0.000000 -8.653620,40.641430,0.000000 -8.653620,40.641430,0.000000 -8.653820,40.641410,0.000000 -8.653880,40.641330,0.000000 -8.653840,40.641210,0.000000 -8.654680,40.641170,0.000000 -8.655050,40.641110,0.000000 -8.655720,40.640970,0.000000 -8.656380,40.640710,0.000000 -8.656380,40.640710,0.000000 -8.656780,40.640690,0.000000 -8.657100,40.640770,0.000000 -8.657280,40.640880,0.000000 -8.657930,40.641600,0.000000 -8.658400,40.641700,0.000000 -8.658400,40.641700,0.000000 -8.658440,40.641880,0.000000 -8.658610,40.642040,0.000000 -8.658890,40.642130,0.000000 -8.659080,40.642110,0.000000 -8.659290,40.642010,0.000000 -8.659430,40.641810,0.000000 -8.660240,40.641170,0.000000 -8.660420,40.641090,0.000000 -8.660730,40.641050,0.000000 -8.661010,40.641120,0.000000 -8.661110,40.641190,0.000000 -8.661260,40.641460,0.000000 -8.661200,40.641700,0.000000 -8.660880,40.642040,0.000000 -8.660880,40.642040,0.000000 -8.659510,40.643000,0.000000 -8.656300,40.644980,0.000000 -8.654190,40.646160,0.000000 -8.650060,40.648260,0.000000 -8.642070,40.652910,0.000000 -8.640550,40.653600,0.000000 -8.639300,40.654000,0.000000 -8.638260,40.654190,0.000000 -8.636930,40.654290,0.000000 -8.635650,40.654240,0.000000 -8.634620,40.654070,0.000000 -8.633690,40.653840,0.000000 -8.632850,40.653560,0.000000 -8.632020,40.653220,0.000000 -8.630330,40.652430,0.000000 -8.623800,40.649200,0.000000 -8.622170,40.648520,0.000000 -8.620320,40.648110,0.000000 -8.616880,40.647970,0.000000 -8.615880,40.647870,0.000000 -8.615050,40.647720,0.000000 -8.613940,40.647380,0.000000 -8.613090,40.647000,0.000000 -8.612710,40.646780,0.000000 -8.611850,40.646210,0.000000 -8.610560,40.645240,0.000000 -8.609240,40.644340,0.000000 -8.608390,40.643850,0.000000 -8.607770,40.643550,0.000000 -8.606120,40.642920,0.000000 -8.604950,40.642600,0.000000 -8.603840,40.642380,0.000000 -8.603840,40.642380,0.000000 -8.603660,40.642290,0.000000 -8.602670,40.642100,0.000000 -8.602130,40.641850,0.000000 -8.601820,40.641570,0.000000 -8.601540,40.641210,0.000000 -8.601360,40.640540,0.000000 -8.601600,40.639540,0.000000 -8.601590,40.639420,0.000000 -8.602790,40.635880,0.000000 -8.603100,40.634520,0.000000 -8.603120,40.633080,0.000000 -8.602910,40.631890,0.000000 -8.602550,40.630820,0.000000 -8.602110,40.629940,0.000000 -8.597920,40.623920,0.000000 -8.597610,40.623510,0.000000 -8.596790,40.622590,0.000000 -8.595850,40.621770,0.000000 -8.595000,40.621150,0.000000 -8.587700,40.616500,0.000000 -8.586670,40.615680,0.000000 -8.586260,40.615250,0.000000 -8.585680,40.614570,0.000000 -8.585200,40.613840,0.000000 -8.585030,40.613470,0.000000 -8.584490,40.611960,0.000000 -8.584380,40.611110,0.000000 -8.584380,40.610600,0.000000 -8.584490,40.609750,0.000000 -8.584730,40.608800,0.000000 -8.584880,40.608400,0.000000 -8.585650,40.607160,0.000000 -8.586680,40.606020,0.000000 -8.587080,40.605690,0.000000 -8.588150,40.604890,0.000000 -8.591140,40.602800,0.000000 -8.592310,40.601840,0.000000 -8.592920,40.601260,0.000000 -8.593860,40.600170,0.000000 -8.594560,40.599070,0.000000 -8.595060,40.598040,0.000000 -8.595390,40.596960,0.000000 -8.595630,40.595950,0.000000 -8.595760,40.594720,0.000000 -8.595890,40.592520,0.000000 -8.596140,40.591310,0.000000 -8.596330,40.590740,0.000000 -8.596540,40.590200,0.000000 -8.596900,40.589490,0.000000 -8.597560,40.588370,0.000000 -8.598080,40.587670,0.000000 -8.599420,40.586120,0.000000 -8.599420,40.586120,0.000000 -8.599520,40.586120,0.000000 -8.599580,40.586070,0.000000 -8.600460,40.585230,0.000000 -8.601140,40.584700,0.000000 -8.601350,40.584460,0.000000 -8.601350,40.584460,0.000000 -8.601880,40.584390,0.000000 -8.602070,40.584270,0.000000 -8.602210,40.584050,0.000000 -8.602250,40.583760,0.000000 -8.602210,40.583490,0.000000 -8.602060,40.583290,0.000000 -8.601670,40.583050,0.000000 -8.601360,40.583010,0.000000 -8.601020,40.583070,0.000000 -8.600690,40.583290,0.000000 -8.600610,40.583440,0.000000 -8.599470,40.583540,0.000000 -8.595860,40.583160,0.000000 -8.594770,40.582930,0.000000 -8.594130,40.582880,0.000000 -8.593490,40.582880,0.000000 -8.591910,40.582740,0.000000 -8.591240,40.582790,0.000000 -8.590980,40.582770,0.000000 -8.590720,40.582710,0.000000 -8.581530,40.578690,0.000000 -8.575560,40.573340,0.000000 -8.573830,40.571620,0.000000 -8.573050,40.571140,0.000000 -8.571290,40.570160,0.000000 -8.571170,40.570040,0.000000 -8.568990,40.568900,0.000000 -8.568990,40.568900,0.000000 -8.568840,40.569050,0.000000 -8.568740,40.569060,0.000000 -8.567510,40.569970,0.000000 -8.566860,40.570220,0.000000 -8.565970,40.570350,0.000000 -8.564840,40.570380,0.000000 -8.562610,40.570550,0.000000 -8.562610,40.570550,0.000000 -8.561800,40.570500,0.000000 -8.561500,40.570420,0.000000 -8.561240,40.570300,0.000000 -8.560880,40.570000,0.000000 -8.560740,40.569810,0.000000 -8.560580,40.569310,0.000000 -8.560730,40.567730,0.000000 -8.560640,40.567420,0.000000 -8.561140,40.564610,0.000000 -8.561350,40.562640,0.000000 -8.561410,40.561610,0.000000 -8.561380,40.560610,0.000000 -8.561320,40.559590,0.000000 -8.561170,40.558400,0.000000 -8.560340,40.554600,0.000000 -8.560180,40.553680,0.000000 -8.560050,40.552730,0.000000 -8.560010,40.551320,0.000000 -8.560050,40.550820,0.000000 -8.560350,40.549540,0.000000 -8.560750,40.548360,0.000000 -8.561710,40.546010,0.000000 -8.562030,40.544540,0.000000 -8.562080,40.543690,0.000000 -8.562010,40.542690,0.000000 -8.561850,40.541920,0.000000 -8.561590,40.541130,0.000000 -8.561240,40.540350,0.000000 -8.560610,40.539330,0.000000 -8.558140,40.536150,0.000000 -8.557160,40.534710,0.000000 -8.556260,40.533160,0.000000 -8.555290,40.531070,0.000000 -8.553650,40.526410,0.000000 -8.553010,40.524900,0.000000 -8.552630,40.524110,0.000000 -8.552070,40.523170,0.000000 -8.551390,40.522100,0.000000 -8.550670,40.521140,0.000000 -8.549660,40.519940,0.000000 -8.548460,40.518720,0.000000 -8.547190,40.517600,0.000000 -8.545850,40.516570,0.000000 -8.544240,40.515460,0.000000 -8.538960,40.512550,0.000000 -8.537560,40.511610,0.000000 -8.536570,40.510830,0.000000 -8.535830,40.510170,0.000000 -8.535200,40.509510,0.000000 -8.534170,40.508310,0.000000 -8.533380,40.507120,0.000000 -8.532720,40.505930,0.000000 -8.532480,40.505450,0.000000 -8.532040,40.504310,0.000000 -8.531720,40.503070,0.000000 -8.531550,40.502060,0.000000 -8.531390,40.499820,0.000000 -8.531240,40.498570,0.000000 -8.530870,40.497070,0.000000 -8.530440,40.495910,0.000000 -8.529810,40.494730,0.000000 -8.529250,40.493860,0.000000 -8.526170,40.489980,0.000000 -8.524850,40.488010,0.000000 -8.524020,40.486480,0.000000 -8.523290,40.484900,0.000000 -8.522770,40.483510,0.000000 -8.522360,40.482170,0.000000 -8.521900,40.479990,0.000000 -8.521690,40.477840,0.000000 -8.521660,40.476350,0.000000 -8.521800,40.471980,0.000000 -8.521690,40.469830,0.000000 -8.521570,40.468930,0.000000 -8.521270,40.467340,0.000000 -8.520920,40.465960,0.000000 -8.518930,40.460140,0.000000 -8.518590,40.458970,0.000000 -8.518220,40.457390,0.000000 -8.517970,40.455950,0.000000 -8.517780,40.454030,0.000000 -8.517660,40.450520,0.000000 -8.517520,40.448400,0.000000 -8.517370,40.447370,0.000000 -8.517140,40.446310,0.000000 -8.516860,40.445370,0.000000 -8.516490,40.444400,0.000000 -8.515800,40.442920,0.000000 -8.515260,40.441970,0.000000 -8.513490,40.439700,0.000000 -8.512770,40.438940,0.000000 -8.511460,40.437700,0.000000 -8.505890,40.433130,0.000000 -8.503860,40.431310,0.000000 -8.502460,40.429850,0.000000 -8.501720,40.428990,0.000000 -8.500820,40.427820,0.000000 -8.499850,40.426410,0.000000 -8.499130,40.425190,0.000000 -8.498380,40.423750,0.000000 -8.497860,40.422540,0.000000 -8.497100,40.420290,0.000000 -8.496410,40.417970,0.000000 -8.495670,40.415830,0.000000 -8.495380,40.415110,0.000000 -8.494370,40.413030,0.000000 -8.493030,40.410550,0.000000 -8.492570,40.409590,0.000000 -8.492010,40.408130,0.000000 -8.491580,40.406380,0.000000 -8.491420,40.405400,0.000000 -8.491260,40.401690,0.000000 -8.491110,40.400190,0.000000 -8.490950,40.399280,0.000000 -8.490720,40.398380,0.000000 -8.489630,40.394960,0.000000 -8.489350,40.393830,0.000000 -8.489120,40.392570,0.000000 -8.489030,40.391700,0.000000 -8.488980,40.390090,0.000000 -8.489010,40.389270,0.000000 -8.489300,40.387140,0.000000 -8.489440,40.386430,0.000000 -8.489790,40.385230,0.000000 -8.490440,40.383500,0.000000 -8.491990,40.380010,0.000000 -8.492690,40.378090,0.000000 -8.493110,40.376720,0.000000 -8.493490,40.374440,0.000000 -8.493640,40.372620,0.000000 -8.493600,40.370510,0.000000 -8.493480,40.369260,0.000000 -8.492840,40.365420,0.000000 -8.492630,40.363820,0.000000 -8.492620,40.361800,0.000000 -8.492710,40.360830,0.000000 -8.492980,40.359360,0.000000 -8.493310,40.358150,0.000000 -8.494180,40.355460,0.000000 -8.494480,40.354350,0.000000 -8.494750,40.352930,0.000000 -8.494830,40.351640,0.000000 -8.494820,40.349200,0.000000 -8.494880,40.347720,0.000000 -8.495020,40.346800,0.000000 -8.495470,40.344590,0.000000 -8.495660,40.343320,0.000000 -8.495680,40.341170,0.000000 -8.495530,40.340030,0.000000 -8.495270,40.338820,0.000000 -8.494840,40.337510,0.000000 -8.493700,40.334390,0.000000 -8.493170,40.332700,0.000000 -8.492980,40.331690,0.000000 -8.492830,40.330320,0.000000 -8.492700,40.325980,0.000000 -8.492580,40.324730,0.000000 -8.492460,40.324040,0.000000 -8.492270,40.323140,0.000000 -8.491800,40.321540,0.000000 -8.490560,40.318420,0.000000 -8.490190,40.317290,0.000000 -8.489950,40.316290,0.000000 -8.489730,40.314630,0.000000 -8.489590,40.312340,0.000000 -8.489450,40.311200,0.000000 -8.489220,40.310070,0.000000 -8.489070,40.309550,0.000000 -8.488570,40.308240,0.000000 -8.487020,40.304700,0.000000 -8.486760,40.303970,0.000000 -8.486380,40.302480,0.000000 -8.486250,40.301650,0.000000 -8.486170,40.300000,0.000000 -8.486150,40.297740,0.000000 -8.486070,40.296790,0.000000 -8.485860,40.295530,0.000000 -8.485590,40.294470,0.000000 -8.485200,40.293350,0.000000 -8.484870,40.292620,0.000000 -8.484500,40.291910,0.000000 -8.483360,40.290110,0.000000 -8.482780,40.289400,0.000000 -8.481640,40.288270,0.000000 -8.479890,40.286730,0.000000 -8.478940,40.285620,0.000000 -8.478560,40.285020,0.000000 -8.478110,40.284160,0.000000 -8.477780,40.283230,0.000000 -8.477550,40.282080,0.000000 -8.477480,40.281440,0.000000 -8.477520,40.280690,0.000000 -8.477700,40.279720,0.000000 -8.477990,40.278780,0.000000 -8.478400,40.277880,0.000000 -8.478960,40.276940,0.000000 -8.479840,40.275700,0.000000 -8.482320,40.272630,0.000000 -8.482760,40.271860,0.000000 -8.483130,40.271060,0.000000 -8.483370,40.270280,0.000000 -8.483470,40.268720,0.000000 -8.483450,40.268100,0.000000 -8.483070,40.265790,0.000000 -8.483040,40.264570,0.000000 -8.483200,40.263490,0.000000 -8.483430,40.262520,0.000000 -8.483680,40.261790,0.000000 -8.484460,40.260330,0.000000 -8.484950,40.259630,0.000000 -8.486370,40.257880,0.000000 -8.486640,40.257500,0.000000 -8.487000,40.256850,0.000000 -8.487250,40.256320,0.000000 -8.487470,40.255690,0.000000 -8.487670,40.254660,0.000000 -8.487720,40.254270,0.000000 -8.487640,40.251370,0.000000 -8.487700,40.250030,0.000000 -8.487970,40.248080,0.000000 -8.488630,40.245020,0.000000 -8.488750,40.244160,0.000000 -8.488800,40.243090,0.000000 -8.488750,40.242210,0.000000 -8.488620,40.241310,0.000000 -8.488320,40.240040,0.000000 -8.487740,40.237970,0.000000 -8.487330,40.236160,0.000000 -8.487100,40.234690,0.000000 -8.487020,40.233730,0.000000 -8.487000,40.232160,0.000000 -8.487390,40.226040,0.000000 -8.487420,40.223610,0.000000 -8.487370,40.221080,0.000000 -8.487140,40.217210,0.000000 -8.487130,40.216140,0.000000 -8.487260,40.214350,0.000000 -8.487460,40.213100,0.000000 -8.487770,40.211800,0.000000 -8.488630,40.208800,0.000000 -8.488810,40.208000,0.000000 -8.489070,40.205950,0.000000 -8.489090,40.204880,0.000000 -8.489030,40.203850,0.000000 -8.488770,40.202080,0.000000 -8.488420,40.200530,0.000000 -8.488420,40.200530,0.000000 -8.488390,40.200090,0.000000 -8.488480,40.199810,0.000000 -8.488630,40.199630,0.000000 -8.488760,40.199560,0.000000 -8.488930,40.199510,0.000000 -8.489120,40.199520,0.000000 -8.489370,40.199620,0.000000 -8.489510,40.199800,0.000000 -8.489650,40.200040,0.000000 -8.489940,40.200830,0.000000 -8.489940,40.200830,0.000000 -8.489950,40.201110,0.000000 -8.489870,40.201300,0.000000 -8.489720,40.201420,0.000000 -8.489270,40.201540,0.000000 -8.486220,40.201150,0.000000 -8.485420,40.201110,0.000000 -8.484470,40.201120,0.000000 -8.483620,40.201200,0.000000 -8.482360,40.201430,0.000000 -8.481520,40.201640,0.000000 -8.480280,40.202090,0.000000 -8.479550,40.202440,0.000000 -8.478650,40.202980,0.000000 -8.476520,40.204790,0.000000 -8.475410,40.205540,0.000000 -8.473820,40.206320,0.000000 -8.465660,40.209900,0.000000 -8.464990,40.210240,0.000000 -8.462840,40.211740,0.000000 -8.461550,40.212560,0.000000 -8.460230,40.213190,0.000000 -8.458820,40.213680,0.000000 -8.457860,40.213920,0.000000 -8.456050,40.214200,0.000000 -8.454780,40.214260,0.000000 -8.448700,40.214310,0.000000 -8.447990,40.214370,0.000000 -8.446930,40.214560,0.000000 -8.446760,40.214530,0.000000 -8.446670,40.214470,0.000000 -8.446570,40.214170,0.000000 -8.446400,40.214010,0.000000 -8.446090,40.213930,0.000000 -8.445790,40.213940,0.000000 -8.445150,40.214120,0.000000 -8.444990,40.214330,0.000000 -8.444790,40.214430,0.000000 -8.444540,40.214520,0.000000 -8.443610,40.214730,0.000000 -8.443100,40.214800,0.000000 -8.442160,40.214660,0.000000 -8.441560,40.214730,0.000000 -8.440890,40.215050,0.000000 -8.439290,40.216040,0.000000 -8.439290,40.216040,0.000000 -8.438930,40.216190,0.000000 -8.438600,40.216240,0.000000 -8.438240,40.216180,0.000000 -8.437900,40.216020,0.000000 -8.437900,40.216020,0.000000 -8.437730,40.216060,0.000000 -8.436850,40.215460,0.000000 -8.436680,40.215220,0.000000 -8.436530,40.215130,0.000000 -8.436530,40.215130,0.000000 -8.435830,40.215500,0.000000 -8.435830,40.215500,0.000000 -8.435700,40.215440,0.000000 -8.435460,40.215210,0.000000 -8.433630,40.213300,0.000000 -8.433390,40.213220,0.000000 -8.433390,40.213220,0.000000 -8.431690,40.214100,0.000000 -8.431690,40.214100,0.000000 -8.429410,40.211580,0.000000 -8.429310,40.211500,0.000000 -8.429200,40.211490,0.000000 </coordinates></LineString></GeometryCollection><styleUrl>#roadStyle</styleUrl></Placemark></Document></kml>
But now it can't.
Looks like Google no longer supports this url-parameter.
As a workaround you could use other mapping tools like mapfab.com
After saving your map you can download it as kmz-file. (It also offers snapping polylines)
You can get KML attachment instead of map window if you click the google-map route link at https://code.google.com site. So you only need to make a test project there.
See details here

Barchsrt series donot show data when I change series name and data provider?

I create my bar chart as following:
{axisStroke}
{axisStroke}
{axisStroke}
<!-- horizontal axis -->
<mx:horizontalAxis>
<mx:LinearAxis id="ac" baseAtZero="true"/>
</mx:horizontalAxis>
<!-- horizontal axis renderer -->
<mx:horizontalAxisRenderers>
<mx:AxisRenderer axis="{ac}"
canDropLabels="true"
styleName="wsViewAxisLabel"
minorTickPlacement="none"
tickPlacement="none"
labelGap="0"
showLabels="false"
showLine="false">
<mx:axisStroke>{axisStroke}</mx:axisStroke>
<mx:tickStroke>{axisStroke}</mx:tickStroke>
<mx:minorTickStroke>{axisStroke}</mx:minorTickStroke>
</mx:AxisRenderer>
</mx:horizontalAxisRenderers>
<mx:series>
<mx:BarSeries id="barSeries" color="#FFFFFF" labelAlign="right"
displayName="{seriesName}"
filters="{[new DropShadowFilter(2,45,0,.3)]}" fontSize="11"
fontWeight="bold" labelField="{valueName}"
xField="{seriesName}"
showDataEffect="{interpolateIn}"
yField="{categoryName}">
<mx:fill>
<mx:LinearGradient id="linearGradient">
<mx:entries>
<fx:Array>
<mx:GradientEntry color="0x99ffcc"
ratio="0.0"
alpha="0.1" />
<mx:GradientEntry color="0x99ffcc"
ratio="1.0"
alpha="1.0"/>
</fx:Array>
</mx:entries>
</mx:LinearGradient>
</mx:fill>
</mx:BarSeries>
</mx:series>
<mx:annotationElements>
<mx:CartesianDataCanvas id="mCanvas"/>
</mx:annotationElements>
</mx:BarChart>
but when I change the series name and datacollection. the bar chart did not show data.
I try to debug code and find the barseries's items length is 0. it's dataprovider and series name, xfield, yfield is right. do not know why barseries did not create barseriesitems.
many thanks for help.
thanks
The dataProvider is bound to the original name, so the dataProvider assignment to the ID needs to be updated. The dataProvider is bound the the ArrayCollection, so the ArrayCollection assignment to the dataProvider needs to be updated as well.
References
Flex Mobile Performance Checklist