How do I create a mapview with titanium appcelerator mobile? - appcelerator

I just start to work with appcelerator and I haven't found a good layout tutorial yet.
At the moment I try to show a mapview with a specific location. Has anybody an example or a good pointer on how to do this?

Download the KitchenSink which is mentioned on the Getting Started page. It has several hundred examples on how to use the various Titanium based APIs - including MapViews.
Here's a simple example
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},
animate:true,
regionFit:true,
userLocation:true
});
win.add(mapview);

Related

Image and Video links do not open in Electron app

Hi,
I face a very weird thing from electron that I could not understand why.
Suppose we develop a very simple webView tag based electron app like following link
simple electron webview sample
Then I changed the default website to www.varzesh3.com which has some video links always.
Then when I click on the image or video links, those links does not open and I do not know why.
It seems that because those links are not normal links, they wont open.
Please let me know if you have any ideas in this regard.
Thanks
I find a link and based on it, I can remove this bug.
Choose which popups should be allowed from webview in electron app
This is the updated fork of electron-webview project that in which I resolve that bug.
https://github.com/monhi/electron-webview

Xamarin Forms - Right Side Master Detail Page

I'm using the lastest version of Xamarin Forms and I'm working inside the PCL. The targeted platform is currently Android.
I would like to create a Master Detail Page on the right side of the screen. I've seen this thread where someone says to create a renderer to achieve this functionality.
Could you give me more details about how to do that?
By the way, I've also tried to use the plugin SlideOverKit, but it does not work in my project.
Thanks.
Try something like this :
Refer here for this sample and article.

Xamarin.Forms: what is the best way to create an image carousel?

I tried coule of plug-in for image carousel for Xamarin.Forms, but they are pretty old and not working fine. Trying the carousel view from Xamarin it's pretty slow and I guess has a limitation on the number of images I can add.
Anybody know how to implement a great carousel for a list of images in Xamarin.Forms ?
Thanks !!
The CarouselView is the way to go. See the link for a tutorial on how to use it.
It has been removed from 2.2.0 due to stability issues and will be temporarily placed in a separate Nuget package of most likely this link: https://www.nuget.org/packages/Xamarin.Forms.CarouselView/ within a few days.
Once it is stable it will be moved back into the main nuget package.

Blackberry development UI

I am new to Blackberry dev, I want to port my android app to BB, but I found out it wont be possible for BB 7 Dev. So I've decided to create a simple app. However, I am having problems with the mainscreen, I do not know how to invoke the bitmapbuttons layout at app startup in the emulator. Any tutorials will be appreciated.
GridFieldManager will do this sort of layout for you, but I have problems using it, so I always end up using the TablelayoutManager code that you can find in this article:
Create-a-rich-UI-layout-with-TableLayoutManager/ta-p/445299
You will want to put images that act as Buttons in the layout. There is no BB supplied class to do this, but plenty of samples if you search using a term like "image button", for example this one:
image-button-in-blackberry

Displaying Google Map on a UIWebView

i have this url:
If i open it up in the iphone or in the ipad, the uiwebview displays the step-by-step to reach the final place.
I want to display the MAP by default.
Is there any way to do that? I mean, with some kind of adaptation of the url?
I have the same question,
according to Apple URL Scheme Reference - Map Links
it seems that we don't have an option to do that.
besides, there's an article building a WEB APPs, I'll post the link in case it might be helpful
Location in iPhone Web Apps

Resources