iPhone CorePlot: Candle Stick , how to set more distance between every stick when zoom in and zoom out? - iphone

CorePlot: Candle Stick ,
how to set more distance between every stick when zoom in and zoom out?
When i try to zoom out, it looks really terrible.
How can i fix it?

You have several options:
Make the bars narrower using the barWidth property.
Filter your data to show fewer bars. Call -reloadData on the plot to load the filtered data.
Make the whole graph wider (probably not an option on iPhone, but may be practical in an iPad or Mac app).

Related

Does Leaflet have a "geopositioning mode"?

I use the Leaflet plug-in "Leaflet.ImageOverlay.Rotated.js" to use its L.imageOverlay.rotated(...) thing in order to overlay certain map pieces in various places on top of the normal map.
It does this by taking an image and having me tell it its top-left, top-right and bottom-left coordinates to figure out how to rotate, tilt and stretch/squeeze it properly.
It took me a very long time to figure these coordinates out by hand. For this reason, I'm looking for some sort of "geopositioning mode", perhaps enabled by this extension, which would simply let me click three times on the map to tell it where these points go. That would be so simple for the developers to do and would help so much. It's such an obvious thing to do that I strongly suspect it's already implemented and ready.
Is there such a "mode"? If not, how am I expected to find the positions without spending so much time and trial-and-error as I did for the first overlay map image?
Added: I should also clarify that the image should be shown in this mode so that you can re-adjust the points and watch in real time as the image bends/warps, to get it just right.
you can develop a modul for this problem.
find minimum 4 point on raster map.
click on tilemap for 4 points
than find different slope and distance same 2 points.
maybe you must rotate and use affine transformation.

is it possible to change overlay iocn size when zoom osm droid map

I spent many hours on it but not getting any fruitful response.I am trying to increasing the size of overlay icon when map is zoom but its not work, I am new on this please help on this
Yes it is, however you have to do the work. Basically, you need to create an MapView.onChangeListener and register it. When the zoom level changes, you need to iterate though your overlays and replace the icon with one of a different size.
At some point in your travels, you'll probably figure out that there will be concurrency/inconsistency issues with over zealous zoomers and panners. To handle this, you can wait until after the user stops scrolling or zooming after a period of time, then do the work.

iOS MapKit - hide overlapping points?

I'm hoping for a straightforward way to display up to 200 points in a Map at once without degrading performance when the user is zoomed out and all of them are on the screen.
We have a draw order of priority and the most important ones are above the others. How can I hide the ones underneath until the user zooms into a specific area?
you can use these delegate methods to determine which region and the zoom level is being shown and show the points accordingly...
– mapView:regionWillChangeAnimated:
– mapView:regionDidChangeAnimated:
refer apple docs for more info..

iPhone Core-plot: Chart Zoom In Zoom out, Y axis Bigger, Y axis Smaller

I am now using Core-plot for iPhone chart Development.
But it has some requirement i can not reach.
I am now using CorePlot 0.4, example code AAPLot to develop
Please have a look the following image, then you will know what is my problem
Thank you very much...
I really need help for this problem,
thank you
i want my result like this application
I see several questions here:
Y-axis scale: Try the CPTAxisLabelingPolicyAutomatic labeling policy on your y-axis. If that doesn't give you enough control, use a different labeling policy and use a plot space delegate to adjust the labeling parameters as the user zooms in and out.
Disappearing x-axis: Make it a "floating" axis. For example,
x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
Maximum zoom level: Use the globalXRange and globalYRange plot space properties. If you need more control, you can use a plot space delegate.
Scroll bars: This isn't directly supported. You could use a plot space delegate to update the scroll bar position.

Putting GPS current location and pin annotations on a UIImageView

I am making an iPhone app for a local college. I am currently trying to take a drawn map of the campus and put pin annotations on it. I also want to be able to show the users current location on this map image. Right now I just have a UIImageView inside of a UIScrollView. It can currently scroll and zoom in/out. How would I go about accomplishing this? I have searched everywhere for an answer and can't seem to find a solution (or have overlooked it). Am I going in the right direction? Thanks for your help.
You would have to come up with a function to translate latitude and longitude into pixel offsets in the image. Assuming the campus is relatively small compared to the Earth (so you can ignore the planet's curvature), this should be a simple matter of determining the coordinates of the four corners of the image and interpolating.