mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
322 stars 8 forks source link

Updating iOS SDK docs #609

Closed tatsvc closed 9 years ago

tatsvc commented 9 years ago

@katydecorah I added css for both a light and a dark iphone frame:

The setup for an image looks like this now:

<div class='pad4 fill-light clearfix'>
  <div class='device device-phone-h contain'>
      <img src="{{site.baseurl}}/images{{page.url | replace:'examples/',''}}.png" />
     <div class='device-details'></div>
   </div>
</div>

screen shot 2015-03-20 at 11 22 51 am

You can make a device white by adding the .device-white class:

<div class='pad4 fill-light clearfix'>
  <div class='device device-phone-h device-white contain'>
      <img src="{{site.baseurl}}/images{{page.url | replace:'examples/',''}}.png" />
     <div class='device-details'></div>
   </div>
</div>

screen shot 2015-03-20 at 11 23 05 am

If you would need a vertical device you can change .device-phone-h to .device-phone-v

katydecorah commented 9 years ago

@tatsvc awesome! I just added logic so those new classes are applied based on a page's front matter.

For example, by default all examples will be dark and horizontal.

Likewise, you can add device: white and rotation: vertical in the front matter to get a white and vertical frame.

katydecorah commented 9 years ago

Just noting ideas for new examples:

tatsvc commented 9 years ago

Handling rotation Specifying center and zoom level

Shouldn't this be in the first example? Because this is something you will probably need for every map?

katydecorah commented 9 years ago

@tatsvc that's a good point! Without the rotation and center/zoom level, the example images don't reflect the code. We should make sure these sync up.

katydecorah commented 9 years ago

Tracking progress:

To do

tatsvc commented 9 years ago

Up next:

tatsvc commented 9 years ago

Final check:

incanus commented 9 years ago

:heart_eyes: :heart_eyes: :heart_eyes: