Custom Tileset won't appear on Android - mapboxsdk - kotlin

I have created a custom tile on mapbox studio and it is visible correctly on the studio but when I use that tile ID in my kotlin code using the Vector source, it does not show, although the logcat shows the request is successful. The tileset I created is also set to public. Even though I've tried loading the built in tile of mapbox "mapbox://mapbox.mapbox-terrain-v2" which is taken from the github repository of mapbox here. This one shown below is also not visible on android although it is visible on mapbox studio.
style.addSource(
VectorSource("terrain-data", "mapbox://mapbox.mapbox-terrain-v2")
)
style.addLayer(
LineLayer("terrain-layer", "terrain-data")
.withProperties(
PropertyFactory.lineJoin(Property.LINE_JOIN_ROUND),
PropertyFactory.lineCap(Property.LINE_CAP_ROUND),
PropertyFactory.lineColor(Color.parseColor("#ff69b4")),
PropertyFactory.lineWidth(1.9f)
)
)
Any help would be appreciated. Thanks!!

I got it working after adding the name of source layer (that can be found on the top left corner, when you open the custom tileset), like below:
Custom Tileset
LineLayer("terrain-layer", "terrain-data").withSourceLayer("name_of_source_layer")

Related

Compose Desktop: How to Access Extended Material Icon Set?

I am making an app using Compose for Desktop. I am trying to include a simple file download Icon that I know is included in the lengthy set of Material Icons, however it is not available under Icons.Filled. Some of the icons included, in my opinion, are nowhere near as commonly used as download... go figure.
I know that Compose for Android has a dependency for an extended set of Material Icons. I tried adding that dependency to my Desktop app, but it threw errors at me.
For now I have added a Feather Icons set courtesy of DevSrSouza, but I would like to know if there is a way to access the Material Icons extension in Compose for Desktop? Thanks.
I guess you have already found the answer but I also had this problem for long time, so here is a right dependency for compose desktop: "org.jetbrains.compose.material:material-icons-extended-desktop:$compose_version"

Are there any instruments to watch screen layout in React Native without running app?

I familiarized with Android development and started to read some information about React Native. And one of the problem which I faced with is that I can't see the screen layout.
In Android Studio, for example, I could see the design of my XML layout without running app. Maybe there are such instruments in React Native, but I didn't see them in WebStorm nor VSCode. Maybe I am wrong and they exist, so, can you help me to find them in such situation?
Some modules format the xml document in vscode,
but others have previewable tools.
XML TOOLS
Extension Settings
xmlTools.enableXmlTreeView: Enables the XML Tree View for XML
documents.
xmlTools.enableXmlTreeViewMetadata: Enables attribute and child
element counts in the XML Document view.
xmlTools.enableXmlTreeViewCursorSync: Enables auto-reveal of
elements in the XML Document view when a start tag is clicked in the
editor.
xmlTools.enforcePrettySelfClosingTagOnFormat: Ensures a space is
added before the forward slash at the end of a self-closing tag.
...
I also had the same problem where there is no layout view in VSCode like in Android Studio. My suggestion is to mock out your View containers with coloured boxes. This is an example of designing a screen's header, so I'm making sure the spacing and sizing is all good:

How to create a custom chart with Appcelerator Titanium (Alloy) for Android

How I create a custom chart like this
with Titanium's Alloy elements (xml, tss, js - no SVG or canvas)? Any suggestion?
One approach which worked for me was the using of a webview and Google Charts.
I stored my "skeleton html page" as local asset, and inside it I wrote the minimum necessary javascript to get the json (from the controller) and to draw the chart.
I didn't need to show data offline so I directly linked the online library but I'm almost sure it's possible to use it offline too.
https://developers.google.com/chart/

Remove the Rotate icon in Syncfusion WinRT Diagram

Hi, I need to develop an WinRT app with XAML and I'm using Syncfusion's library for that. Whenever I click on a node the resizer appears along with the rotate icon. I removed all the QuickCommands but the rotate icon won't go away.
Please note that I am using the SfDiagram inside a custom control. Thanks
We are glad to announce that our Essential Studio 2015 Volume 1 is rolled out and is available for download under the following link:
http://www.syncfusion.com/forums/118723/essential-studio-2015-volume-1-final-release-v13-1-0-21-available-for-download
Feature Information:
Requirement: Remove the Rotate Icon from Node
We have provided support to achieve your requirement in our Essential Studio 2015 Volume 1.This requirement can be achieved by using SelectorConstraints property of ISelector. We have provided code snippet to represent this. Please refer to the following code snippet
Code Snippet:
(DiagramControl.SelectedItems as ISelector).SelectorConstraints = (DiagramControl.SelectedItems as ISelector).SelectorConstraints & ~SelectorConstraints.Rotator;
Here, DiagramControl is the instance of SfDiagram.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Syncfusion Support Team

How to add layers on mapbox?

I just checked the documentation to add the layer on mapbox. But it is not working for me.
https://www.mapbox.com/help/adding-custom-layers/
Please have a look.
When I am trying to add a layer it pops up a blank window and there is no provision to add a layer.
What is the mistake?
In the link you provided you will notice the following line.
A window will open allowing you to add or remove layers to your
project. Layers are any .MBTiles you have uploaded to your Data page.
What this implies is that you need to firstly download the "Mapbox Studio" application.
In the app you can then create styles and sources. Its a source you need here. You then have to import some data, after which you can uploaded it to your online account. Afraid i don't now much about this step.
Once you've saved and uploaded this to your account it should then appear in the popup you speak off.
Download MapBox Studio
View you uploaded data here