Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add drag handle image

  • Loading branch information...
commit e1f0016adaca14d3fab2e478b9e3bdfcba41d1d5 1 parent 4380102
@maxogden authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 GeoJSON.js
  2. BIN  img/knob.png
View
11 GeoJSON.js
@@ -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
BIN  img/knob.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.