Using Polylines with jquery-ui-map

584 views
Skip to first unread message

JP

unread,
Nov 25, 2011, 9:31:04 PM11/25/11
to jquery-ui-map-discuss
I am trying to use Polylines with jquery-ui-map
Here is my page:
http://jpkvideo.com/jqMobile/maps/map3.html

I understand there are no methods to do this using the plugin. How can
I implement polylines on a map created with jquery-ui-map?

I have tried the following but cant get it to work:

route.setMap($('#map_canvas').gmap('getMap'));

where route is set up with the following:

<!--POLYLINE SETUP-->
var routeCoordinates = [
new google.maps.LatLng(37.75709331368999, -122.39760875701904),
new google.maps.LatLng(37.75755136001274, -122.39790916442871),
new google.maps.LatLng(37.75807726155255, -122.39795207977295),
new google.maps.LatLng(37.75811119055579, -122.39713668823242),
new google.maps.LatLng(37.763777115796074, -122.39771604537964)
];
var route = new google.maps.Polyline({
path: routeCoordinates,
strokeColor: "#1a3147",
strokeOpacity: 1.0,
strokeWeight: 3
});
<!--POLYLINE SETUP-->

Johan Säll Larsson

unread,
Nov 27, 2011, 8:46:28 AM11/27/11
to jquery-ui-...@googlegroups.com
http://code.google.com/p/jquery-ui-map/wiki/jquery_ui_map_v_3_sample_code#Example_Polygon/Polyline/Rectangle/Circle

Use v.3.0-alpha
--
Med vänliga hälsningar

Johan Säll Larsson

MT (Swe): +46-739-728 777
MT (Thai): +66-876-808202
E-post: johansal...@gmail.com
Skype: johan.sall.larsson

--------------------------------------------------------------------
Om du felaktigt blivit mottagare av detta meddelande, ber jag dig informera avsändaren om felet genom att använda svar-funktionen. Jag ber dig också att radera e-postmeddelandet utan att skicka det vidare eller kopiera det.

JP

unread,
Nov 27, 2011, 5:17:57 PM11/27/11
to jquery-ui-map-discuss
Ok now I am using v.3.0-alpha now.
I can't get the Circle example code to work though.
here is my page-
http://jpkvideo.com/jqMobile/jquery-ui-map-3.0_a/maps/test.html

On Nov 27, 5:46 am, Johan Säll Larsson <johansalllars...@gmail.com>
wrote:
> http://code.google.com/p/jquery-ui-map/wiki/jquery_ui_map_v_3_sample_...

> E-post: johansalllars...@gmail.com

Reply all
Reply to author
Forward
0 new messages