---
layout: example
categories: example/v1.0.0
version: v1.0.0
title: Cycling through markers
description: Automatically center and show markers in a loop.
tags:
  - markers
---
<div id='map'></div>

<script>
var map = L.mapbox.map('map')
  .setView([37.77396, -122.4366], 12)
  .addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));

var myFeatureLayer = L.mapbox.featureLayer('/mapbox.js/assets/data/sf_locations.geojson')
  .addTo(map);

// Open popup when user mouses over a marker
myFeatureLa