Skip to content

Commit

Permalink
Version 2.1
Browse files Browse the repository at this point in the history
Changed icon- prefix to map-icon-
Added ROUNDED marker
Fixed SVG Markers to center on LatLng
  • Loading branch information
scottdejonge committed Oct 3, 2013
1 parent 8d13765 commit 600a6c6
Show file tree
Hide file tree
Showing 9 changed files with 391 additions and 379 deletions.
23 changes: 16 additions & 7 deletions README.md
@@ -1,7 +1,7 @@
Map-Icons
=========

Version 2.0
Version 2.1

Website: <http://map-icons.com/>

Expand All @@ -19,6 +19,7 @@ Map Icons makes [Google Maps Markers](https://developers.google.com/maps/documen
* SQUARE_PIN
* SHEILD
* ROUTE
* ROUNDED

##Usage
Map Icons extends the [Google Maps Marker](https://developers.google.com/maps/documentation/javascript/reference#Marker) Object to enable either an image or SVG marker to be used with the icon placed on top as a label.
Expand All @@ -39,28 +40,36 @@ var marker = new Marker({
strokeWeight: 0,
scale: 1/2
},
label: '<i class="icon-parking"></i>'
label: '<i class="map-icon-parking"></i>'
});
```

###Styling the Icon
```
.marker-label {
.marker-label,
.marker-icon {
z-index: 99;
position: absolute;
display: block;
margin-top: -50px;
margin-left: -25px;
width: 50px;
height: 50px;
white-space: nowrap;
color: #FFFFFF;
font-size: 30px;
line-height: 50px;
font-size: 30px !important;
text-align: center;
color: #FFFFFF;
white-space: nowrap;
}
```

##Changelog

#### Version 2.1

* Changed icon- prefix to map-icon-
* Added ROUNDED marker
* Fixed SVG Markers to center on LatLng

#### Version 2.0

* Added Activity Icons
Expand Down

0 comments on commit 600a6c6

Please sign in to comment.