How to Create Google Maps Slider

Google Maps has a JavaScript API now in it’s third version. Google Maps v3 no longer requires applying for an API key which is nice. For one thing, it’s fully evented. That means you can attach event listeners to different thing, like the map itself or things inside the map. A simple example would be if a marker is clicked, you can change the zoom level of the map, change information shown elsewhere on the page, or really anything else you might want to do with JavaScript.

google maps slider How to Create Google Maps Slider

Chris Coyier was play with it a little and try to build Google Maps Slider. He created a list of locations in an unordered list. Each list item had HTML5 data attributes containing the latitude and longitude of it. It also contained a title and long and short descriptions. When one of these list items is hovered over, I apply a “hover” class to deal with styling, “pan” the map to the new coordinates, and fill out the right area with more information.

Requirements: Google Maps API
Demo: http://css-tricks.com/google-maps-slider/
License: License free

Incoming search terms for the article:

Related Posts

map

jVectorMap: An Interactive jQuery Map

GMAP3 - jQuery Plugin For Google Maps

Leaflet - Lightweight JavaScript Library For Interactive Maps

iPhone Tracker - Open Source Application To Mapping Your iPhone Movement

1 Comment

  1. Neeraj Kumar

    07.15.2010

    Nice share Mufti :D
    Neeraj Kumar´s last blog ..25 Examples Of Fresh HTML 5 Web Designs My ComLuv Profile