Small map scale bar showing up in the map footer on Google Docs view, but not in embedded site view - google-fusion-tables

I am using Derek Eder's Searchable Map Template. In the Google Docs map view, along the bottom, there is a tiny scale bar, but when I embed the map on my website, the scale disappears. Anyone know how to retain the scale when using an embedded map?
Google docs version with scale
Embedded map without scale

set the scaleControl-property of the map-options to true(default is false)
MapsLib.initialize();
map.setOptions({scaleControl:true});

Related

Candlestick views are generated but not displayed

Using the SwiftCharts library, I have a chart of candlesticks. And they are generated and I can track them. But some on the far right are not visible on the screen / seem to be behind some other views of the chart?
You can, however, see them here in the view debugger which confirms they exist (on the far right):
How can I make sure all candlestick views are displayed?
Ah, it turned out the container view of the chart view was clipping bounds. This one liner right before adding the chart.view as a subview fixed it:
chart.containerView.clipsToBounds = false

ios Page View Controller, Single Sided with central Spine

I'm attempting to create a magazine style app (in horizontal orientation) where the spine is located along the middle.
I have created a pageviewcontroller, set its transition to pagecurl with horizontal orientation. I've also set double sided to NO as i want to display one view per spread.
When the spine is set to location min, it works, however i'd like the spine to be in the middle so when the user turns the page, that current view is divided from it's center.
When i set the spine location to mid, xcode is telling me to make the controller doublesided (so that a view can be seen at each side of the spine) but this is not the effect that i'm after.
Does anyone know how to get around this?
So in the end I decided to duplicate content in the datasource and mask half the page with a position defined by the odd/even value of the index.
This works fine but it means that I cant have dynamic content running over the spine or odd effects happen.

What exactly spine is in UIPageViewController?

The iOS doc says that we can present one or 2 pages at a time depending on the spine location or position and double sided state...
But, I am unable to understand "What exactly spine is in UIPageViewController ?"
It applies only when transitionStyle is set to PageCurl (otherwise it evaluates to None); during the animation of the UIPageViewController a 3D page is displayed: this property controls where the border of the page is attached with respect to the parent controller (that is, the position of the 'spine' of the displayed 3D book).
Min means it is attached on the left side, Max for the right, and Mid displays two consecutive pages split in the middle. In pictures (the spine is in red):
Reference: Apple documentation.

Scale UIWebview with content of page scaling with it

I am trying to mimic the tabbing system of the mobile safari app. When you go into tab mode, it looks like the page is shrinking. In my app, i have tried 3 different ways to achieve this effect.
1) capture image of the UIWebView, hide the web view and scale the image.
2) scale the UIWebView
3) apply a transform to the web view.
The first way is one of the best, except if i rotate the screen, the image is funky looking, because it ether expands the image, or shrinks the image.
The second way doesn't work, The web view does skink but it basically just zooms in on the web view content, so if your on google.com, it would zoom into the google logo or somewhere on the page, instead of keeping how it looks when not zoomed, and shrinking that.
The third way also works! except using transforms i don't see a way of controlling the x, y, width and height of the web view. i can add a translation or scale it, but with rotation, it doesnt work that well.
for portrait size of the web view on an iPhone 5 im trying to make it (64, 91.5, 192, 315), and landscape CGRectMake(113, 65, 341, 161). How can I fix this to make it scale right?
The transform approach is likely to be the best; when you apply a transform to a layer (including indirectly via the view) you instruct the GPU to do something special when compositing it. So you have free rein to do whatever you want without the view's logic on how to fit things into a particular space having any effect. As it's all a composition effect, the original pixel rendering of the view is unchanged.
However, when you rotate the device you want to adjust the view itself because what you actually want is for the web view to relayout content.
If you're just literally emulating Safari then use the view's frame to set the normal full screen layout; when you want to show the zoomed out view also apply a scaling transform and create a suitable paged scrollview to swipe between pages. If the device rotates then that should affect the frame and the scrollview but not the transform.

How to implement a zoomable UIPageViewController when in Two Pages mode?

I need to implement a zoomable UIPageViewController in iOS 5 when in a two pages layout mode (in other words, when the Spine Location is set to Mid).
Using a scrollview for each page works fine when only one page is displayed. But when two pages are diplayed side-by-side in landscape mode, how can one seamless synch the pages and align the borders during the zoom animation?
One possible solution would be to put the UIPageViewController inside a bigger UIScrollView controller, but this yelds a blurred image because the two scrollviews inside the pages are not updated with a higer resolution area of the source images when the parent is zoomed.
It seems that is impossible to zoom inside a UIPageViewController when in two page mode. Is there someone who found a solution to this?
Thanks in advance.
I am still testing, but I have this.
I used the pageviewcontroller template.
I changed the scene to show a image instead a month (inside a UIImageView).
used a UIPinchGestureRecognizer to zoom the image and an UIPanGestureRecognizer to move the image once it is zoomed and it works.
The only problem is sometimes the page swipe is recognised instead the pan, so it changes the page instead moving the inside image.
And it only zooms a page at a time, I marked clip subviews in the view of the dataViewController, so 2 pages remains the same size even when you zoom in the other.

Resources