Maps Platform

Product updates, customer stories, and tips and tricks on Google Maps Platform

abbyputinski.com — Google Maps with a twist

2013年10月4日星期五




Positioning the overlay on the map 

The MapView has two child views. The DOM element for a custom overlay actually needs to reside inside the markup generated by Google Maps, but the overlay is an Ember.View so the MapOverlayView is actually rendered as a sibling of the MapCanvas and then moved into the correct spot later.







Keep the overlay centered while panning 

The default behavior for a custom overlay is to re-calculate the styles when the map is panned, but to build an overlay that stays centered on the map, the overlay should only be drawn once and then pan with the map.










Creating the overlay 

Finally, once the overlay has been created and rendered, resolve a promise letting the application know the map is ready.







Final Thoughts 

This project was extremely fun and was successful due to the collaboration between design and development. The Google Maps API gave us the creative freedom to completely customize the map, while Custom Overlays really pulled the experience together.



Posted by Monica Tran, Google Maps API Marketing



Adam and Abby Putinski are a husband and wife design/dev team located in San Francisco. Learn more about their work at abbyputinski.com




Share on Twitter Share on Facebook
  

標籤


  • 5 Great Maps
  • ads
  • advertising
  • africa
  • Andorra
  • Android
  • App Engine
  • art
  • Australia
  • Autocomplete
  • Boston
  • brazil
  • Bruce Springsteen
  • Bulgaria
  • Campus Map
  • Chrome
  • City 24/7
  • Code for America
  • COM API
  • Computerlogy
  • creative advertising campaigns
  • Custom Map Types
  • design
  • developer
  • Developer Challenge
  • Developer stories
  • Directions API
  • Drawing Tools
  • Driving Directions
  • Earth
  • Earth API
  • Elevation API
  • environment
  • epungo
  • Estonia
  • Europe
  • Fab Friday
  • flash
  • Fusion Tables
  • GAE
  • games
  • GDAL
  • Gears
  • geo
  • Geodesic Lines
  • Germany
  • Gibraltar
  • GIS
  • Global Economy
  • gme
  • Google Analytics
  • Google App Engine
  • Google Earth
  • Google Earth API
  • Google I/O
  • Google Maps
  • Google Maps API
  • Google Maps Engine
  • Google Places API
  • Google Places API Developer Challenge
  • Google Street View API
  • government
  • Hackathon
  • Hamburg
  • heat map
  • heatmap
  • hiking
  • Hungary
  • iOS
  • JavaScript
  • jQuery
  • kenya
  • KML
  • Latitude API
  • Latvia
  • launch
  • Lithuania
  • local search
  • London
  • Mac
  • Map of the Week
  • maps
  • Maps API
  • Maps API for Flash
  • Maps Data API
  • Maps Zen
  • Marker Clusterer
  • Marketing
  • Mars
  • meetup
  • mobile
  • moca
  • modern art
  • More Than a Map
  • Morethanamap
  • Movies
  • Neighborhoods
  • New York City
  • Office Hours
  • Olympics
  • Panoramio
  • photos
  • Place Summaries
  • Places API
  • Plus
  • polygons
  • Premier
  • public transit
  • public transit layer
  • Python
  • real estate
  • rock
  • sao paulo
  • screencast
  • SketchUp
  • Slovakia
  • Slovenia
  • South Africa
  • Spain
  • Spatial Data Files
  • Static Maps API
  • street view
  • Styled Maps
  • Sydney
  • Track
  • traffic layer
  • Transportation
  • Tripline
  • Twitter
  • UN
  • United Nations
  • V3
  • Vancouver Olympics
  • visualizations
  • Volkswagen
  • VW
  • web
  • youtube


Archive


  •     2018
    • 11月
    • 7月
    • 6月
    • 5月
    • 3月
    • 2月
  •     2017
    • 11月
    • 6月
    • 5月
    • 4月
    • 3月
    • 2月
    • 1月
  •     2016
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 6月
    • 5月
    • 4月
    • 2月
  •     2015
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 6月
    • 5月
    • 4月
    • 3月
    • 2月
    • 1月
  •     2014
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 6月
    • 5月
    • 4月
    • 3月
    • 2月
  •     2013
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 6月
    • 5月
    • 4月
    • 3月
    • 2月
    • 1月
  •     2012
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 6月
    • 5月
    • 4月
    • 3月
    • 2月
    • 1月
  •     2011
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 5月
    • 4月
    • 3月
    • 2月
    • 1月
  •     2010
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 6月
    • 5月
    • 4月
    • 3月
    • 2月
    • 1月
  •     2009
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 6月
    • 5月
    • 4月
    • 3月
    • 2月
    • 1月
  •     2008
    • 12月
    • 11月
    • 10月
    • 9月
    • 8月
    • 7月
    • 6月
    • 5月

Feed

Follow
Google Maps Platform Website

Give us feedback in our Product Forums.

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms