How to add KML File in 1.6

Phoca Maps - displaying maps in Joomla! CMS
IanCalhaem
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Mar 2011, 02:24

How to add KML File in 1.6

Post by IanCalhaem »

In Phoca Maps for Joomla 1.6 the installation of KML files has changed so existing documentation is a little confusing.

To intall and display a KML file two separate operations are required.
1. Under COMPONENTS select new and create your map.
At the bollom of the page enter the name of your KML file as "phone.kml" in lowercase and without the " marks.

2. You must now also tell the component that you want to use the installed KML file.
To do this you must close the map and return to the component PHOC CONTROL PANEL (the one showing Maps - Markers - Icons - Info.
At the top right of the window click on "options".
This opens up a menu where you can set the loading of the KML file and also whether you want printing of the Route.

Regards, Ian :)
Max1971
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 31 Mar 2010, 19:24

Re: How to add KML File in 1.6

Post by Max1971 »

Hello,
thanks for your components, first of all.
I have this problem: I've created a kml file that works even in Google earth and in maps, but when I try to use it on my new Joomla 1.7 site, the map is centered at latitude and longitude 0°, infact if I zoom out, I can find my markers, my areas and so on, but the maps seems to be wrongly centered.
I can't realize if it's my fault, google fault or Phoca map faults.
I attach my map's code below, please try to test it.
Thanks a lot in advance

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document id="i11713739212">
<Style id="style2">
	<IconStyle>
<Icon>
	<href>http://maps.gstatic.com/intl/it_ALL/mapfiles/ms/micons/blue-dot.png</href>
</Icon>
	<hotSpot x="0.5" y="0.5" xunits="UNITS_PIXELS" yunits="UNITS_PIXELS"/>
	</IconStyle>
	<ListStyle>
	<bgColor>ffffffff</bgColor>
	</ListStyle>
</Style>
<Style id="style1">
	<IconStyle>
<Icon>
	<href>http://maps.gstatic.com/intl/it_ALL/mapfiles/ms/micons/blue-dot.png</href>
</Icon>
	<hotSpot x="0.5" y="0.5" xunits="UNITS_PIXELS" yunits="UNITS_PIXELS"/>
	</IconStyle>
	<ListStyle>
	<bgColor>ffffffff</bgColor>
	</ListStyle>
</Style>
<Style id="style7">
	<IconStyle>
<Icon>
	<href>http://maps.gstatic.com/intl/it_ALL/mapfiles/ms/micons/blue-dot.png</href>
</Icon>
	<hotSpot x="0.5" y="0.5" xunits="UNITS_PIXELS" yunits="UNITS_PIXELS"/>
	</IconStyle>
	<ListStyle>
	<bgColor>ffffffff</bgColor>
	</ListStyle>
</Style>
<Style id="style3">
	<IconStyle>
<Icon>
	<href>http://maps.gstatic.com/intl/it_it/mapfiles/ms/micons/blue-dot.png</href>
</Icon>
	<hotSpot x="0.5" y="0.5" xunits="UNITS_PIXELS" yunits="UNITS_PIXELS"/>
	</IconStyle>
	<ListStyle>
	<bgColor>ffffffff</bgColor>
	</ListStyle>
</Style>
<Style id="style4">
	<IconStyle>
<Icon>
	<href>http://maps.gstatic.com/intl/it_it/mapfiles/ms/micons/blue-dot.png</href>
</Icon>
	<hotSpot x="0.5" y="0.5" xunits="UNITS_PIXELS" yunits="UNITS_PIXELS"/>
	</IconStyle>
	<ListStyle>
	<bgColor>ffffffff</bgColor>
	</ListStyle>
</Style>
<Style id="style6">
	<IconStyle>
<Icon>
	<href>http://maps.gstatic.com/intl/it_it/mapfiles/ms/micons/blue-dot.png</href>
</Icon>
	<hotSpot x="0.5" y="0.5" xunits="UNITS_PIXELS" yunits="UNITS_PIXELS"/>
	</IconStyle>
	<ListStyle>
	<bgColor>ffffffff</bgColor>
	</ListStyle>
</Style>
<Style id="style5">
	<IconStyle>
<Icon>
	<href>http://maps.gstatic.com/intl/it_it/mapfiles/ms/micons/blue-dot.png</href>
</Icon>
	<hotSpot x="0.5" y="0.5" xunits="UNITS_PIXELS" yunits="UNITS_PIXELS"/>
	</IconStyle>
	<ListStyle>
	<bgColor>ffffffff</bgColor>
	</ListStyle>
</Style>

	<name>IC Marcheno</name>
	<open>1</open>
	<description><![CDATA[<div>
	Mappa dell'Istituto comprensivo di Marcheno</div>]]></description>
	<Camera>
		<longitude>10.40158302037795</longitude>
		<latitude>45.77451514491042</latitude>
		<altitude>128784.8387079489</altitude>
		<heading>0.1270807139532396</heading>
		<tilt>0</tilt>
		<roll>0</roll>
	</Camera>
	<styleUrl>#style2</styleUrl>
	
	<Placemark>
		<name>Scuola Primaria "Tito Speri"</name>
		<address>Via Madonnina, 24, Marcheno, BS, Italia</address>
		<Camera>
			<longitude>10.21195620000001</longitude>
			<latitude>45.70560850000001</latitude>
			<altitude>9720.676547063071</altitude>
			<heading>0.001682902781168548</heading>
			<tilt>0</tilt>
			<roll>0</roll>
		</Camera>
		<styleUrl>#style8</styleUrl>
		
		<Point>
			<coordinates>10.211658,45.70579100000001,0</coordinates>
		</Point>
	</Placemark>
	<Placemark>
		<name>Scuola Primaria "Padre Fausti"</name>
		<styleUrl>#style2</styleUrl>
		<Point>
			<coordinates>10.231898,45.721077,0</coordinates>
		</Point>
	</Placemark>
	<Placemark>
		<name>Scuola Primaria "Don Tadini"</name>
		<address>Località Fravagno, Lodrino, Italia</address>
		<styleUrl>#style7</styleUrl>
		<Point>
			<coordinates>10.27729,45.719109,0</coordinates>
		</Point>
	</Placemark>
	<Placemark>
		<name>Scuola Primaria "Aldo Moro"</name>
		<address>P.zza Mercato, Tavernole, BS, Italia</address>
		<styleUrl>#style3</styleUrl>
		<Point>
			<coordinates>10.240374,45.74868,0</coordinates>
		</Point>
	</Placemark>
	<Placemark>
		<name>Scuole Elementari di Pezzaze</name>
		<address>Via Parrocchia, 4, Pezzaze, BS, Italia</address>
		<styleUrl>#style4</styleUrl>
		<Point>
			<coordinates>10.238056,45.775501,0</coordinates>
		</Point>
	</Placemark>
	<Placemark>
		<name>Scuola Primaria "Nicolò Tartaglia"</name>
		<address>Via Dosso, 3 Marmentino, BS, Italia</address>
		<styleUrl>#style6</styleUrl>
		<Point>
			<coordinates>10.28613,45.75565,0</coordinates>
		</Point>
	</Placemark>
	<Placemark>
		<name>Scuola Secondaria di 1° grado "Francesco Bertussi"</name>
		<address>Via Madonnina, 24, Marcheno, BS, Italia</address>
		<styleUrl>#style5</styleUrl>
		<Point>
			<coordinates>10.211956,45.705608,0</coordinates>
		</Point>
	</Placemark>
	<Placemark>
		<name>Scuola Secondaria di 1° Grado "Don Tadini"</name>
		<address>Località Fravango, Lodrino, Italia</address>
		<styleUrl>#style1</styleUrl>
		<Point>
			<coordinates>10.277281,45.719109,0</coordinates>
		</Point>
	</Placemark>
	<Placemark id="i11720746473">
		<name>Direzione Didattica</name>
		<address>Via Rinaldini, 5, 25060 Marcheno (BS) Italia</address>
		<snippet><![CDATA[<div>
	<strong></strong></div>]]></snippet>
		<description><![CDATA[<div>
	<div>
		<strong><a href="http://www.icmarcheno.it/">http://www.icmarcheno.it</a> </strong></div>
	<div>
		&nbsp;</div>
	<div>
		<strong>Orari di apertura al pubblico</strong> (durante le lezioni):<br />
		Lun./Mer./Ven. : dalle ore 10.30 alle 13.00 e dalle ore 14.30 alle 15.30<br />
		Mar./Gio./Sab.: dalle ore 10.30 alle 13.30</div>
</div>]]></description>
		<Style>
			<IconStyle>
				<Icon>
					<href>http://www.northgates.ca/earthplugin/images/pin48.png</href>
				</Icon>
			</IconStyle>
			<ListStyle>
				<listItemType>check</listItemType>
				<bgColor>ffffffff</bgColor>
				<maxSnippetLines>2</maxSnippetLines>
			</ListStyle>
		</Style>
		
		<Point>
			<coordinates>10.21131610870361,45.70457077026367,0</coordinates>
		</Point>
	</Placemark>
	<Placemark>
		<name>Provincia di Brescia</name>
		<LookAt>
			<longitude>10.32151159119178</longitude>
			<latitude>45.9699544538325</latitude>
			<altitude>0</altitude>
			<heading>0.07209372032563474</heading>
			<tilt>0</tilt>
			<range>223845.8455139154</range>
			<altitudeMode>relativeToGround</altitudeMode>
		</LookAt>
		<Style>
			<IconStyle>
				<Icon>
					<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
				</Icon>
			</IconStyle>
			<ListStyle>
				<listItemType>check</listItemType>
				<bgColor>ffffffff</bgColor>
				<maxSnippetLines>2</maxSnippetLines>
			</ListStyle>
			<LineStyle>
				<color>fff5f5f5</color>
				<width>3</width>
			</LineStyle>
			<PolyStyle>
				<color>8000ffff</color>
			</PolyStyle>
		</Style>
		<Polygon>
			<outerBoundaryIs>
				<LinearRing>
					<coordinates>
						10.4668083190918,46.35529708862305,0 10.45751571655273,46.35195541381836,0 10.44893932342529,46.3470573425293,0 10.44551849365234,46.34301376342773,0 10.4374418258667,46.34048080444335,0 10.43332576751709,46.33732986450195,0 10.42318248748779,46.33580017089843,0 10.41644859313965,46.32846832275391,0 10.40554046630859,46.32265472412109,0 10.39983940124512,46.31673431396484,0 10.39040470123291,46.31162643432617,0 10.3858642578125,46.30261611938477,0 10.37635707855225,46.29844665527344,0 10.36989212036133,46.29259872436523,0 10.36249160766602,46.29053497314453,0 10.34920787811279,46.29155349731445,0 10.3393440246582,46.28746795654298,0 10.33270645141602,46.28951644897461,0 10.32515811920166,46.28264999389648,0 10.31528282165527,46.28017807006836,0 10.31347274780273,46.25791931152344,0 10.29916477203369,46.24777221679688,0 10.29483509063721,46.22380447387695,0 10.2844877243042,46.21941757202148,0 10.28239917755127,46.21430587768555,0 10.27189826965332,46.21171569824219,0 10.25982761383057,46.20534896850586,0 10.23088455200195,46.19927215576172,0 10.22656536102295,46.18772506713867,0 10.18103313446045,46.17930603027343,0 10.17807674407959,46.16656494140625,0 10.17351245880127,46.16545867919922,0 10.17288970947266,46.16225433349609,0 10.15908622741699,46.15826797485352,0 10.16781902313232,46.141845703125,0 10.17472648620606,46.13486099243165,0 10.17394638061523,46.13068389892578,0 10.16780376434326,46.12620544433594,0 10.1656608581543,46.11184692382813,0 10.16897296905518,46.10320281982422,0 10.17446517944336,46.10268020629883,0 10.17533779144287,46.09902954101563,0 10.17497253417969,46.09244155883789,0 10.18085765838623,46.09208297729492,0 10.17847537994385,46.08663558959961,0 10.18249130249023,46.08077621459961,0 10.17362022399902,46.06797027587891,0 10.16894817352295,46.05666732788086,0 10.17996311187744,46.05154037475586,0 10.19617748260498,46.05020523071289,0 10.20365810394287,46.04358291625977,0 10.21464061737061,46.05222320556641,0 10.22837162017822,46.04940414428712,0 10.22812175750732,46.03937149047851,0 10.23168087005615,46.0343132019043,0 10.25249004364014,46.03603363037109,0 10.25703811645508,46.02774047851563,0 10.25648021697998,46.0237808227539,0 10.2628698348999,46.01916122436524,0 10.25251007080078,46.01124572753906,0 10.22247505187988,46.00978851318359,0 10.21813201904297,46.00668334960938,0 10.20446014404297,46.00825119018555,0 10.19064331054688,45.99835968017577,0 10.18565559387207,45.98775863647461,0 10.17559051513672,45.98514938354492,0 10.17958354949951,45.97333908081055,0 10.1498966217041,45.96633529663087,0 10.12761116027832,45.95893478393555,0 10.11825561523438,45.95503616333009,0 10.11372375488281,45.93729782104492,0 10.1045618057251,45.93140029907227,0 10.09879016876221,45.92736434936523,0 10.09148406982422,45.92133331298828,0 10.09579181671143,45.91392517089844,0 10.09648418426514,45.90789794921875,0 10.10323524475098,45.89639663696289,0 10.11002635955811,45.89029312133789,0 10.1096830368042,45.88508224487305,0 10.13066387176514,45.87250137329101,0 10.1433048248291,45.86845016479492,0 10.15096092224121,45.86637878417969,0 10.14750385284424,45.8640022277832,0 10.14965534210205,45.86181640625,0 10.16127586364746,45.86637878417969,0 10.14787769317627,45.85724639892578,0 10.14907073974609,45.85350799560548,0 10.14318370819092,45.85269165039063,0 10.1326847076416,45.84446716308594,0 10.11872863769531,45.83351135253906,0 10.12084674835205,45.82807922363281,0 10.09827518463135,45.80801391601563,0 10.072096824646,45.79929351806641,0 10.05726528167725,45.77938842773438,0 10.05677127838135,45.75984191894532,0 10.07064628601074,45.72909164428711,0 10.05764675140381,45.70827865600586,0 10.06786060333252,45.68876266479492,0 10.06789302825928,45.68210983276367,0 10.05604839324951,45.67502975463867,0 10.01858234405518,45.66825866699219,0 9.999579429626465,45.67113494873047,0 9.981771469116211,45.67025756835938,0 9.963810920715332,45.66545486450195,0 9.922526359558106,45.63653564453125,0 9.905363082885742,45.6076545715332,0 9.867491722106934,45.60513687133789,0 9.860639572143555,45.59069061279297,0 9.846917152404785,45.57140731811523,0 9.860830307006836,45.51371383666992,0 9.895350456237793,45.45365142822266,0 9.89539909362793,45.42956924438477,0 9.895519256591797,45.3548583984375,0 9.926441192626953,45.33085632324219,0 10.02249336242676,45.26844787597656,0 10.05673313140869,45.27817153930664,0 10.09097766876221,45.26860046386719,0 10.08629322052002,45.26500701904296,0 10.08508396148682,45.2596321105957,0 10.09028720855713,45.25653076171876,0 10.09211826324463,45.25342559814454,0 10.09860420227051,45.25361633300781,0 10.10094928741455,45.25032424926758,0 10.10096263885498,45.24739837646484,0 10.10615634918213,45.24575805664063,0 10.11056900024414,45.24813842773437,0 10.11706256866455,45.24631881713867,0 10.12147521972656,45.24723434448242,0 10.12875175476074,45.2459602355957,0 10.13290977478027,45.24303817749023,0 10.14252281188965,45.24139785766602,0 10.1453800201416,45.24322891235352,0 10.15031719207764,45.24048995971679,0 10.15733337402344,45.23775100708008,0 10.1599292755127,45.23848342895508,0 10.16459941864014,45.24232864379883,0 10.16823577880859,45.24123001098633,0 10.16953659057617,45.23921966552734,0 10.17498970031738,45.23995590209961,0 10.18304347991943,45.23776245117188,0 10.18070602416992,45.23319244384766,0 10.18460178375244,45.23154830932617,0 10.18901824951172,45.23319244384766,0 10.1892786026001,45.23721313476562,0 10.19291591644287,45.23776245117188,0 10.1944751739502,45.23447036743164,0 10.19369316101074,45.22935485839844,0 10.1975908279419,45.22898864746093,0 10.20148944854736,45.22843933105469,0 10.20798587799072,45.22898483276367,0 10.2194128036499,45.2242317199707,0 10.22330570220947,45.22734069824219,0 10.22252559661865,45.22935485839844,0 10.21733379364014,45.22880554199219,0 10.21785259246826,45.23136520385742,0 10.22330379486084,45.23136520385742,0 10.22304344177246,45.23319625854492,0 10.22018718719482,45.23429107666016,0 10.22226428985596,45.23538970947266,0 10.22486019134522,45.23484039306641,0 10.22771549224854,45.23520660400391,0 10.22823429107666,45.23648834228516,0 10.22382068634033,45.23740005493163,0 10.22693538665772,45.23941421508788,0 10.22875213623047,45.24105834960938,0 10.23264312744141,45.24435043334961,0 10.23783588409424,45.24288940429688,0 10.24302673339844,45.24325180053712,0 10.24614143371582,45.2425193786621,0 10.24873542785645,45.24471282958984,0 10.24977016448975,45.24837112426757,0 10.25106525421143,45.25312423706055,0 10.26566982269287,45.25091552734374,0 10.26566600799561,45.24744415283203,0 10.26904201507568,45.24707794189453,0 10.26696109771729,45.2445182800293,0 10.26955890655518,45.24542999267578,0 10.26903247833252,45.23939895629882,0 10.27370548248291,45.23903274536133,0 10.27811622619629,45.23720169067383,0 10.27525424957275,45.23318099975586,0 10.28563404083252,45.23006820678711,0 10.28329563140869,45.22769165039063,0 10.30638885498047,45.22365188598632,0 10.31001567840576,45.21944046020508,0 10.31261348724365,45.22053146362304,0 10.31286811828613,45.21723937988281,0 10.31468200683594,45.2148551940918,0 10.31858062744141,45.21668243408203,0 10.32143402099609,45.2163200378418,0 10.31779670715332,45.21430587768555,0 10.31701183319092,45.21083450317383,0 10.32142066955566,45.20919036865234,0 10.31622314453125,45.20516586303711,0 10.3447732925415,45.20422744750977,0 10.3429651260376,45.2086181640625,0 10.3447847366333,45.2108154296875,0 10.34971427917481,45.21172714233399,0 10.35543346405029,45.21500778198242,0 10.36088848114014,45.21591567993164,0 10.35572528839111,45.23091888427734,0 10.36221790313721,45.2318229675293,0 10.35937881469727,45.23968887329102,0 10.36224937438965,45.24571609497071,0 10.37054634094238,45.24003982543945,0 10.37834739685059,45.24131011962891,0 10.38017177581787,45.24277114868164,0 10.38044738769531,45.24843597412109,0 10.37837028503418,45.24971771240234,0 10.37811660766602,45.25209808349609,0 10.38279914855957,45.25263977050781,0 10.38330554962158,45.24770355224609,0 10.39110469818115,45.24641036987305,0 10.39629459381104,45.24475860595703,0 10.39708709716797,45.25133895874023,0 10.39293384552002,45.25061416625977,0 10.39112186431885,45.25464248657227,0 10.39321994781494,45.26304626464844,0 10.39530944824219,45.26779556274414,0 10.39219474792481,45.26926422119141,0 10.39246463775635,45.27365112304688,0 10.39455032348633,45.27675247192383,0 10.39559841156006,45.2804069519043,0 10.39794921875,45.28570175170898,0 10.40236949920654,45.28752136230469,0 10.40393352508545,45.29062271118164,0 10.40652847290039,45.28878784179688,0 10.40837097167969,45.29389953613281,0 10.42084312438965,45.29479217529297,0 10.4257869720459,45.29697418212891,0 10.42423629760742,45.29880523681641,0 10.42477703094482,45.30355453491211,0 10.42713069915772,45.30756759643555,0 10.43026638031006,45.31212615966797,0 10.42952537536621,45.32143783569335,0 10.44821834564209,45.3199462890625,0 10.44954586029053,45.32706069946289,0 10.45344066619873,45.32669067382813,0 10.45395183563232,45.32468032836915,0 10.46642208099365,45.3248405456543,0 10.465163230896,45.33469772338867,0 10.47139263153076,45.33322525024414,0 10.46805381774902,45.34140396118164,0 10.46941947937012,45.35839462280273,0 10.46682929992676,45.36004257202149,0 10.46478939056397,45.36917114257813,0 10.46041297912598,45.37811660766601,0 10.45109462738037,45.38396835327148,0 10.46752643585205,45.40613555908203,0 10.45045852661133,45.41672897338867,0 10.4509859085083,45.41890716552735,0 10.45486259460449,45.41580581665039,0 10.47869873046875,45.41463851928711,0 10.48617267608643,45.41258239746094,0 10.49421787261963,45.41439437866211,0 10.49889087677002,45.41529846191406,0 10.50637435913086,45.41254425048828,0 10.51182079315186,45.41289901733399,0 10.5261869430542,45.40406799316406,0 10.53267955780029,45.39774703979493,0 10.54102516174316,45.39101791381836,0 10.54591083526611,45.38863754272461,0 10.54949569702148,45.38626098632813,0 10.56126499176025,45.38972854614258,0 10.57975959777832,45.38061904907227,0 10.59884071350098,45.38662719726563,0 10.61423015594482,45.38356399536133,0 10.62657928466797,45.38397216796875,0 10.63155269622803,45.38656234741211,0 10.64236640930176,45.39101028442383,0 10.64645385742188,45.40427398681641,0 10.65147972106934,45.40946578979493,0 10.65642166137695,45.41550445556641,0 10.64411163330078,45.41683959960938,0 10.64440631866455,45.42085647583008,0 10.64755916595459,45.42320251464844,0 10.65125560760498,45.42846298217773,0 10.64724636077881,45.4345817565918,0 10.64601230621338,45.42956924438477,0 10.6365327835083,45.52260208129883,0 10.63104438781738,45.54448699951171,0 10.62766456604004,45.60861206054688,0 10.70607089996338,45.67801666259766,0 10.76070690155029,45.73721313476563,0 10.80931186676025,45.79811859130859,0 10.81726360321045,45.80522537231445,0 10.8330888748169,45.81745147705078,0 10.84035396575928,45.83150100708008,0 10.82303142547607,45.83822631835938,0 10.81827449798584,45.8343505859375,0 10.81103038787842,45.83686447143555,0 10.80427074432373,45.8349609375,0 10.796142578125,45.83676147460938,0 10.79265975952148,45.83300399780273,0 10.78656959533691,45.83419799804688,0 10.78238487243652,45.83985137939454,0 10.77356624603272,45.84391021728516,0 10.76432991027832,45.84019470214845,0 10.76143646240234,45.83615493774413,0 10.75694370269775,45.82983398437501,0 10.75138378143311,45.83637619018555,0 10.74372100830078,45.84018707275391,0 10.73720264434815,45.84346008300781,0 10.7254810333252,45.84223937988282,0 10.71757221221924,45.83701705932617,0 10.70695972442627,45.83800506591797,0 10.70179748535156,45.84124755859375,0 10.69644832611084,45.83988571166992,0 10.68999671936035,45.83677673339844,0 10.68352508544922,45.83240127563477,0 10.67615413665772,45.83087158203125,0 10.66590595245361,45.83223342895508,0 10.65470886230469,45.83197021484375,0 10.65540409088135,45.82985687255859,0 10.65394401550293,45.82711410522461,0 10.65579032897949,45.82418823242188,0 10.65878295898438,45.82235336303711,0 10.6513729095459,45.81833267211915,0 10.64927101135254,45.81018447875977,0 10.64622783660889,45.8055305480957,0 10.6417818069458,45.80210494995117,0 10.63889598846436,45.80421447753906,0 10.63344478607178,45.80661010742188,0 10.62177562713623,45.80590438842773,0 10.61377811431885,45.80564498901368,0 10.60255336761475,45.80310058593751,0 10.60052013397217,45.80041122436523,0 10.59077072143555,45.7978515625,0 10.58236122131348,45.79391479492188,0 10.58178997039795,45.78929901123047,0 10.57476615905762,45.7866325378418,0 10.56457710266113,45.78482437133789,0 10.55564880371094,45.78200531005859,0 10.54981708526611,45.78370666503906,0 10.54731559753418,45.78399658203125,0 10.54249286651611,45.78508377075195,0 10.53401279449463,45.78699111938477,0 10.5372486114502,45.79155731201172,0 10.52834987640381,45.79872512817383,0 10.55588531494141,45.82249450683594,0 10.52506160736084,45.82254409790039,0 10.51140403747559,45.8297233581543,0 10.49800968170166,45.88446044921875,0 10.5221529006958,45.91288757324218,0 10.51539516448975,45.92952728271484,0 10.48794269561768,45.92248916625977,0 10.48123359680176,45.94861221313477,0 10.50874328613281,45.96512985229492,0 10.48476600646973,45.96757507324219,0 10.46420097351074,45.96763610839844,0 10.45068168640137,46.00322341918945,0 10.49535369873047,46.02203750610352,0 10.47839546203613,46.05522155761719,0 10.4990406036377,46.06942749023437,0 10.54381465911865,46.10256195068359,0 10.56119728088379,46.13836669921875,0 10.56834030151367,46.1812629699707,0 10.55123424530029,46.19533538818359,0 10.55132007598877,46.20960235595703,0 10.56858062744141,46.21932601928711,0 10.58597278594971,46.2457160949707,0 10.5758056640625,46.27642440795898,0 10.56694412231445,46.2778091430664,0 10.55973625183106,46.2829475402832,0 10.5800313949585,46.29883575439453,0 10.57371330261231,46.30629730224609,0 10.56461048126221,46.31196594238281,0 10.56542873382568,46.32160186767578,0 10.56588268280029,46.32560348510742,0 10.54825210571289,46.33423233032227,0 10.53895854949951,46.33712768554688,0 10.53076934814453,46.34001922607422,0 10.52270793914795,46.34346389770508,0 10.51521396636963,46.34307479858398,0 10.51389884948731,46.33520889282227,0 10.49973392486572,46.33438873291016,0 10.49412822723389,46.34169006347656,0 10.48825550079346,46.34241104125977,0 10.48670768737793,46.34827041625977,0 10.4668083190918,46.35529708862305,0 10.4668083190918,46.35529708862305,0 
					</coordinates>
				</LinearRing>
			</outerBoundaryIs>
		</Polygon>
	</Placemark>
</Document>
</kml>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to add KML File in 1.6

Post by Jan »

Hi, can I see the site to see the html/javascript if the kml file is loaded corectly?
If you find Phoca extensions useful, please support the project
Max1971
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 31 Mar 2010, 19:24

Re: How to add KML File in 1.6

Post by Max1971 »

HI and sorry for delayed answer, but I was in holiday :D
Now I have upgraded joomla to 1.7 and phoca maps plugin to 2.0.3

Now the problem is the following:
Google Maps Error - Check latitude and longitude values in Map Settings
I have enabled kml loading, the installation is quite "virgin"... I don't know :x

You can see detail at http://lnx.icmarcheno.it/joomla2/
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to add KML File in 1.6

Post by Jan »

Hi, then you should check the right syntax of your KML and right values there.

Jan
If you find Phoca extensions useful, please support the project
Max1971
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 31 Mar 2010, 19:24

SOLVED Re: How to add KML File in 1.6

Post by Max1971 »

Now it works.
Don't undertand me why, probably there was a problem in kml file generated by kml builder, infact the only thing I made is to import in Gmaps the generated kml file and export it back again with Google maps.

Tahk you very much for dupport and extensions.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to add KML File in 1.6

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply