Ravi
Ravi

Reputation: 17

Google Maps api: Polyline path

var symbolOne = {
  path: 'M -2,0 0,-2 2,0 0,2 z',
  strokeColor: '#F00',
  fillColor: '#F00',
  fillOpacity: 1
};

This one is working perfect, But I don't know what does 'M -2,0 0,-2 2,0 0,2 z' means, and what it will do. Please someone help me to understand this.

Upvotes: 0

Views: 318

Answers (1)

geocodezip
geocodezip

Reputation: 161334

from the documentation

M -2,0 0,-2 2,0 0,2 z' 

is SVG path notation

Upvotes: 1

Related Questions