I need you help. I saw one application myhomes for iphones. link for that app is from myhomes.com. they are using map in which markers are there when you click on marker one button is displayed(that is really a thaught for me how to disply a button in objective c when we click on marker in webview because there we might using javascript ). that will redirect to other screen which displays details of that event. I want to use that kind of functionality in my code. they might be using some api. I am very eger to know how they are doing that. rite now i am displaying map with google map javascript and displaying pop of when we click on marker. but that pop up is non clickable as it is of html type. how can i put a button on my uiview at the same position where my marker is ? how to combine objective c with javascript ? i know most of the developers might aware of this. please try to help me. that will be a great appreciation.
hopefully looking for the answers ...
Thanks a lot
Please see the MapKit component documentation included with the iPhone 3.0 SDK.
Related
Complete coding newbie trying to do this.
I created a button in my scene and I need to now find a C# script that will allow me to call OnClick --> take screenshot --> save it to gallery in iOS/Android. I've been looking all over the Internet and I've seen bits and pieces of how to do this, but nothing complete.
I found this: https://github.com/yasirkula/UnityNativeGallery
but utterly confused about what code I need so that I can drag it onto the button. Please help. Thank you!
I am actually looking for a way to customize my window popups like it is done on this website : http://www.nytimes.com/newsgraphics/2013/quiet/#/map/
I have been looking on all the web and no way to find it ...
Any ideas or website explaining it ?
Thanks guys
The javascript code uses a combination of JQuery, JQueryUI, qTip2, and a couple of other libraries for localization and media player abilities.
You can find the specific javascript code for those markers here: NYTimes Map - zoom.js
All the css is found here: NYTimes Map - quiet.css
The main tool used for the mouseover parts is qTip2. Tutorials and demos can be found on the website. That's probably the thing you're going to want to start with.
There is a Leaflet extention called Leaflet.Rrose. Description from Leaflet plugins page:
For use when you want popups on mouseover, not click, and you need popup tips to reorient as you get close to the edges of your map.
Check out examples on extensions' page.
I am trying to implement in my code something like an info window , but not exactly. I found a very nice tutorial here , Info Window for iOS , but what i want to do is when i press on my button , the space under it to expand and show my various options.
I mean i dont want another window to open , but something like a space under the button expanding , revealing stuff. Maybe you have seen this in applications with buttons with a + next to them , to reveal more info , and then with a - to hide it.
How exactly is this called on iOS and is there a tutorial you are aware of about it?
It would be good for you to look into UIView animation blocks. These will be useful in the future as well. This tutorial doesn't do the exact thing you are looking for because it is fairly specific, but this will tell you how to use animation blocks, and you should be able to turn that into what you are looking for. It is also a good thing to know.
http://www.raywenderlich.com/2454/how-to-use-uiview-animation-tutorial
It sounds like you are looking for a popup menu, which isn't really provided in iOS. But you can look at third-party controls such as this one:
http://www.cocoacontrols.com/platforms/ios/controls/qbpopupmenu
I am wondering how Amazon did the highlight/note popup buttons in the Kindle app. After reading about UIPasteboard, UIMenuController, UIResponder, and UIResponderStandardEditActions, I am able to turn on or off standard edit actions (i.e. copy, cut, paste, select, and selectAll). However I haven't found a way to add a custom action yet. I would really appreciate it if I could get a pointer.
Thanks in advance!
Chris
(source: sampletheweb.com)
Edited by balexandre (added image instead link)
It looks like Amazon implemented their own custom view that mimicked the appearance of UIMenuController. I believe they did this rather than use SPI because if you click and hold on the Highlight cell, the arrow does not highlight, when it does in the real UIMenuController.
I don’t think there is a public interface to these controls, you’d probably have to code them yourself. (Or maybe figure out the private API, but that’s a slippery slope.) I am not sure about that, though, maybe somebody will prove me wrong.
That's a good point about the arrow part of the Notes/Highlight popup menu not highlighting, so they must be implementing their own.
However they are also obviously using a UIWebView, because it's recognizing tap and hold and they can highlight the text, and you can't get touch events from a UIWebView, much less get the information about what's selected. So how are they doing that?
This would be very useful for us to be able to do as well.
Use DTMenuController http://www.drobnik.com/touch/2010/01/dr-touchs-parts-store/
Costs 100 EUR ^_^
Custom menu items can be added via the UIMenuController's menuItems property. See Apple's UIMenuController docs.
the javascript part can be managed with jQuery, that's a fair simple and powerful library. i'm using it for resizing and rearranging things in a webview and it works great :)
Hope you all are fine and also in one of your best moods!!
I have one problem in Map based application. kindly go through it and post your suggestion.
Thing at Glance:
I need to integrate map in my application.
application shows map based on passing parameter as state and city.
i am using yahoo map image for that.
i.e.
pass parameter as following:
state : CA
city : Loss Angelous.
it shows image of map perfectly that i load on webview.
now issue is here:
i need to put button at selected city.. i don't know how do i put.
because on clicking button i need to load another view that contains Details of that city.
I don't know how do i do this.
Kindly give your suggestion.
Thank you.
Arun Thakkar.
Using the iPhone SDK 3.0 you can use the MKMapKit framework to embed a map in your application, and you can add custom annotations. Here's the MKMapView documentation.