---
layout: example
categories: example/v1.0.0
version: v1.0.0
title: Marker styles using pointToLayer
description: Set marker style in a featureLayer with pointToLayer.
tags:
- markers
- featureLayer
- style
---

<div id='map'></div>
<script>
var map = L.mapbox.map('map')
  .setView([45.522, -122.677], 3)
  .addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));;

var geojson = {
    "type": "FeatureCollection",
    "features" : [{
        "type": "Feature",
        "geometry": {
        "typ