I have implemented google maps within my app. However i cannot work out how to allow the user to dynamically change the Map Icon Color.
Here is the code i am using:
any help would be greatly appreciated.put the uGoogleMap of this stack into lamorce
put empty into lesData1
put empty into lesData2
set itemdelimiter to tab
repeat with i = 1 to the number of lines of aTraiter
put item 1 of line i of atraiter into leNom
put item 2 of line i of atraiter into lesCoordonnees
put "var latlngPos"&i&" = new google.maps.LatLng("&lesCoordonnees&");"&cr after lesData1
put "var marker = new google.maps.Marker({"&cr after lesData2
put "position: latlngPos"&i&","&cr after lesData2
put " map: map,"&cr after lesData2
put "title: ""e&leNom"e&"});"&cr after lesData2
end repeat
if the number of lines of aTraiter > 5 then
replace "[DATAZOOM]" with "zoom: 6," in lamorce
else
replace "[DATAZOOM]" with "zoom: 10," in lamorce
end if
replace "[DATA1]" with lesData1 in lamorce
replace "[DATA2]" with lesData2 in lamorce
put the effective filename of this stack into tPath
set the itemDelimiter to slash
delete last item of tPath
put "file:"&tPath&"/googlemap.html" into abc
put lamorce into url abc
launch url "file:"&tPath&"/googlemap.html"