google maps api with polyline not displaying lines

المشرف العام

Administrator
طاقم الإدارة
I converted shape files into mysql table that has features like LINESTRING and MULTILINESTRING.I am using google maps api ( var shape = new google.maps.Polyline({path: this.ll_(geometry.coordinates)});

Problem I see some lines are shown and some lines not shown on google maps.Upon some investigation I found the below pattern

Visible on map:LINESTRING(-95.70088290884703 29.796810244001758 -95.70095233538004 29.796815220864822 -95.70098690877408 29.79685720414559 -95.70105782738007 29.796886370743728 -95.70114173880154 29.79686101440745 -95.70119076015966 29.796803460014676 -95.70119110796124 29.79671868281031)

MULTILINESTRING((-95.70000403672482 29.797410753535747 -95.70000405452899 29.796834969389906 -95.70000456865915 29.796830274181957) (-95.70000456865915 29.796830274181957 -95.70001062875536 29.796774883922527))

Not visible on mapLINESTRING(-95.70088290884703 29.796810244001758 -95.7007993738502 29.796816095635855)LINESTRING(-95.70001062875536 29.796774883922527 -95.70000198258266 29.796441221396034)

basically wherever it is simple line with two ends it is not showing, if it is line with multiple ends or multi line strings it is visible on maps.

Any suggestion on what needs to be changed to display both types of lines ?



أكثر...
 
أعلى