Permalink
Browse files

add drag handle image

  • Loading branch information...
1 parent 4380102 commit e1f0016adaca14d3fab2e478b9e3bdfcba41d1d5 @maxogden committed Nov 16, 2011
Showing with 9 additions and 2 deletions.
  1. +9 −2 GeoJSON.js
  2. BIN img/knob.png
View
@@ -67,11 +67,18 @@ var GeoJSON = function( geojson, options ){
var path = new google.maps.MVCArray;
for (var j = 0; j < geojsonGeometry.coordinates[i].length; j++){
var ll = new google.maps.LatLng(geojsonGeometry.coordinates[i][j][1], geojsonGeometry.coordinates[i][j][0]);
-
+
var marker = new google.maps.Marker({
position: ll,
map: map,
- draggable: true
+ draggable: true,
+ icon: new google.maps.MarkerImage(
+ 'img/knob.png',
+ new google.maps.Size(23, 24),
+ new google.maps.Point(0,0),
+ new google.maps.Point(12,12)
+ ),
+ shape: {coord: [12,12,12], type: "circle"}
});
app.markers.push(marker);
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e1f0016

Please sign in to comment.