Map Padding with the Google Maps SDK for iOS

Map Padding with the Google Maps SDK for iOS


Map padding in the Google Maps SDK for iOS (http://goo.gl/8n3lV) allows you to change the visible region of your map, so that your controls, logo, and copyright notices are all aligned with your view. In this video, Mano Marks explores the benefits of map padding and how to implement it in the SDK.
Closed Caption:


Hi, I'm Mano Marks.
I'm a developer advocate
on the Google Maps team.
In this video, I'm
going to show you
how to use map
padding to control
the visible region of your map
in the Google Maps SDK for iOS.
First, let's take a look
at what padding does.
I've modified the
map padding demo
in the demos project
that comes with the SDK
that you can download from
the documentation page.
First, I disable map
padding and run the demo.
When I toggle the overlay, it
creates a view and moves it up.
As you can see, it blocks
a portion of the map,
including the controls and
the Google logo and copyright
notices.
This reduces the
functionality of the map
and is not in compliance
with the Maps API terms,
which do require that
the logo and copyright
notices be visible.
But if I enable map
padding, I can correctly
set the visible
region of the map
so that text and control
positioning, map gestures,
and camera movements
all behave as if they
are placed in the padded map,
even though the map takes up
the entire container.
The map will continue to
fill the entire container,
but text and control
positions, map gesture,
and camera movements
will behave as if they've
been placed on the padded space.
However, as you can
see through this view,
it retains its
original overall size.
The code is really simple.
All you need is a
UIEdgeInsets object.
You set it using the GMS
map view padding property.
For more information
on map padding,
check out the
documentation at this link.
And if you want more
information on getting started
with the Google Maps SDK for
iOS, check out this playlist.


Video Length: 02:16
Uploaded By: Google Developers
View Count: 11,359

Related Software Products
Map View SDK
Map View SDK

Published By:
Offlinesoft

Description:
The Map View SDK is available as a stand alone Developer kit. The Map View SDK offers a Direct DLL method to draw multi-type maps by region within your application. The satellite maps and the street maps will be easily used as background maps within your application such as GIS. The Map View SDK is not a Royalty Free tool kit and a limited number of Licenses are included for end user distribution with your application with the SDK product you purchase, with additional bulk license packs ...


Related Videos
Map View - Current Location in Swift - Xcode 7 iOS 9 Tutorial
Map View - Current Location in Swift - Xcode 7 iOS 9 Tutorial

In this tutorial we learn how to display the users current location on a map view.​ Sponsor: Get the iOS 9 Developer Course with Swift 2 and Xcode 7! http://bit.ly/1Mrsifz Source Code: http://bit.ly/22GmWoa To Subscribe To Vea Software Weekly: http://www.veasoftware.com/newsletter To Support Vea Software: http://www.veasoftware.com/donate Social Accounts: Twitter: ...
Video Length: 11:49
Uploaded By: Vea Software
View Count: 44,585

Swift: How to integrate Google Maps SDK with Cocoapods to Build a Vacation App
Swift: How to integrate Google Maps SDK with Cocoapods to Build a Vacation App

Today, we'll go over step by step how to integrate Google Maps SDK for iOS using Swift and Cocoapods to build a Vacation App. We'll go over how to set the map view centered on the interesting places of San Francisco, CA. In addition, we'll place markers on these spots. Next, we take a look at how to animate the camera from one location to then next. Finally, when we are completely done, we'll have created a flyover application that explores some of my favorite spots the city has ...
Video Length: 26:17
Uploaded By: Lets Build That App
View Count: 20,944

XCode 5 Tutorial Map View Part 1 - Displaying Map Views - Geeky Lemon Development
XCode 5 Tutorial Map View Part 1 - Displaying Map Views - Geeky Lemon Development

Free Crash Course: http://www.iosdevelopmentcrashcourse.com Source Code: http://www.geekylemon.com/#!map-views... Hey guys in this tutorial i will be showing you how to make a map view with advance feature to locate your location and change between hybrid satellite and map views i hope this help you out in your projects and if there anyway you think i can improve my tutorials or want to request one just tell me via comment or pm and subscribe please leave feedback on ...
Video Length: 10:42
Uploaded By: GeekyLemon
View Count: 19,049

Maps Live: Google Maps SDK for iOS Version 1.4
Maps Live: Google Maps SDK for iOS Version 1.4

The latest version of the Google Maps SDK for iOS, version 1.4, comes with great new features such as Street View, Indoor Maps, and a new look and feel. Mano Marks and Luke Mahe from the Google Maps Developer Relations Team demo these features for you and talk about how you can add them to your application. hr / bClosed Caption:/b MANO MARKS: Hi, I'm Mano Marks. LUKE MAHE: And I'm Luke Mahe. MANO MARKS: We're on the Google Maps ...
Video Length: 01:59
Uploaded By: Google Developers
View Count: 13,901

Maps Shortcuts: Indoor Maps in the Google Maps SDK for iOS
Maps Shortcuts: Indoor Maps in the Google Maps SDK for iOS

Mano Marks shows you how use the Google Maps SDK for iOS (http://goo.gl/8n3lV) to create a map that has indoor floor plans and how to create a custom level picker in your app. hr / bClosed Caption:/b Hi, I'm Mano Marks. I'm developer advocate on the Google Maps Developer Relations team. I want to welcome you to this week's Google Maps shortcut. In this episode, we'll be talking about the Google Maps SDK for iOS ...
Video Length: 08:16
Uploaded By: Google Developers
View Count: 9,853

2D/3D Indoor Map SDK for iOS and Android
2D/3D Indoor Map SDK for iOS and Android

This video shows the indoor map SDK by Heidelberg Mobil International GmbH. The Deep Map™ SDK gives you a nice view of an area with different buildings. You can pitch, zoom and click the 2D/3D multifloor map. Routing from one room to another can be shown on the map. Zoom into floor level to see more details from the building. The 2D/3D map can be used for iOS and Android devices. An also interactive 2D map can be used for websites. Find out more at: www.deep-map.com
Video Length: 01:30
Uploaded By: Heidelberg Mobil
View Count: 9,028

iPhone SDK Tutorial Part 1 TabBarController showing WebView and MapView
iPhone SDK Tutorial Part 1 TabBarController showing WebView and MapView

Here we develop an application presenting multiple views using using a tab bar controller. The tab bars presents a web view and a map view. We also add icons to the tab bar items. You can download the source code for the app here: http://cloud.github.com/downloads/car... hr / bClosed Caption:/b well hello I the system with burkhart is a bit and this is my first tutorial on your iPhone SDK development and the topic recovering ...
Video Length: 09:35
Uploaded By: carticipate
View Count: 9,008

iPhone SDK Tutorial   Part 4 TabBarController showing WebView and MapView
iPhone SDK Tutorial Part 4 TabBarController showing WebView and MapView

Here we develop an application presenting multiple views using using a tab bar controller. The tab bars presents a web view and a map view. We also add icons to the tab bar items. The video is a lengthy, and goes into more depth with explanation of what the code does. Not just a how to, but also a how so. You can download the source code for the app here: http://cloud.github.com/downloads/car... hr / bClosed Caption:/b okay so we're gonna call ...
Video Length: 07:59
Uploaded By: carticipate
View Count: 7,247

Copyright © 2025, Ivertech. All rights reserved.