Skip to content
Snippets Groups Projects
Commit 7f80beb9 authored by Rebecca White's avatar Rebecca White
Browse files

render encoded polylines ('encoded_line' and 'encoded_shape') on gmaps

parent 553a01eb
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,12 @@ Drupal.gmap.addHandler('gmap', function (elem) { ...@@ -89,6 +89,12 @@ Drupal.gmap.addHandler('gmap', function (elem) {
case 'line': case 'line':
shape.shape = new Pl(cargs); shape.shape = new Pl(cargs);
break; break;
case 'encoded_line':
shape.shape = GPolyline.fromEncoded(shape);
break;
case 'encoded_polygon':
shape.shape = GPolygon.fromEncoded(shape);
break;
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment