3 ms·
The submitted URL doesn't give much information. Originial URL: http://www.mayzes.org/googlemaps.jquery.html http://www.mayzes.org/googlemaps.jquery.html Sinc
by joshfinnie 17y ago
The submitted URL doesn't give much information.
Originial URL: http://www.mayzes.org/googlemaps.jquery.html http://www.mayzes.org/googlemaps.jquery.html
Since I have some experience with Google Maps API, I have to say that the code examples found on the website does seem a little easier than the original Google API.
For example, if you want to draw a polyline on a Google Map:
jQuery Plugin:
$(document).ready(function() {
$('selector').googleMaps({
polyline: {
startLatitude: 37.4419,
endLatitude: 37.4519,
endLongitude: -122.1519,
color: '#ff0000',
pixels: 2
}
});
});
Google Maps API:
var polyline = new GPolyline([
new GLatLng(37.4419, -122.1419),
new GLatLng(37.4519, -122.1519)
], "#ff0000", 10);
map.addOverlay(polyline);
- axod 17y agoIs it just me that prefers the second code snippet by a mile?