Join us and have fun learning how you can easily get started building JavaScript web and mobile GIS applications. We'll walk through some new quick start tools and resources that can shave off hours and even weeks of ramp-up time. There will be discussions on how to create and publish maps in minutes, as well as understanding how JavaScript and GIS services work together. Liberally sprinkled throughout the session will be lots of tips-and-tricks, and lessons learned.
28. <meta name="viewport" content="width=device-width, !
!initial-scale=1, maximum-scale=1, user-scalable=no"/
>!
Sedng
the
mobile
view
port
Minimum
view
port
Zoom
level
on
page
load
Force
only
map
to
zoom
34. CSS3
Media
Queries
Target
devices
by
screen
width
Apply
styles
by
device
orientaEon
Target
high
density
screens
such
as
iPhone
5
!
@media screen and (min-device-width:768px) and (max-device-width:1024px) {!
/* styles go here */!
}!
@media (orientation: landscape) {
/* styles go here */
}!
@media screen and (device-aspect-ration: 40/71) {
/* high resolution device styles go here */
}!
35. Phone
ProperBes
via
JavaScript
Verify
orientaEon
Detect
user
agent
Browser
sniffing
!
isPortrait = window.matchMedia("(orientation: portrait)").matches;
// is the user on an iPad or iPhone
isiPad = navigator.userAgent.match(/iPad/i);
isiPhone = navigator.userAgent.match(/iPhone/i);
// check if the browser is IE
if (dojo.has("ie")) {
// IE specific code
} else {
// non-IE specific code
}