Get current location in JSplumb toolkit version - jsplumb

In jsplumb we are having the provision for managing the dataset.In that we are having nodes,edges,ports.In that edges we are having the provision of overlays.My need is when we overlay the edges i want to display content at the same location .we are having the provision to get and set the current location in community version.I am using the toolkit version.Is any predefined functions are available to get the current location(x,y co-ordinates) in toolkit version.

Related

How to handle Namespace collisions when using TreeView in UWP apps

An exception is thrown when setting "ItemContainerStyle" to "StaticResource TreeViewItemStyle" which is defined in generic.xaml. The message indicates the style is using "Windows.UI.Xaml.Controls.TreeViewItem" rather than "Microsoft.UI.Xaml.Controls.TreeViewItem".
I removed ItemContainerStyle assignment to confirm that it is the line causing the exception.
<ControlTemplate TargetType="muxcontrols:TreeView">
<muxcontrols:TreeViewList x:Name="ListControl"
ItemTemplate="{StaticResource TreeViewItemDataTemplate}"
ItemContainerStyle="{StaticResource TreeViewItemStyle}">
The problem seems obvious, but a proper solution evades me. To leverage the style, do I start prepending "muxcontrols:" in the generic.xaml file? This seems like a bad idea. Do I need to recreate the style and behaviors separately?
I tried (min build 17763 and target build 17134) to eliminate version problems, but it seems I need 17763 for both. Even though, I am not setting ItemsSource. I'm trying the technique used in the docs: "learn.microsoft.com/en-us/windows/uwp/design/…" for the Music Library TreeView sample. My real project's min version is 16299.
So, the issue was clear. The TreeView control is introduced from build 17134. If you're using the platform APIs, you need to make sure that your project's target version is 17134 or higher. Since you said you want to set ItemsSource. ItemsSource and its related APIs require Windows 10, version 1809 (SDK 17763) or later, so you need to make your project's target version is 17763.
Then, you could directly use the TreeView control like the following:
<TreeView></TreeView>
If you're using Windows UI Library APIs, you need to follow the Getting started with the Windows UI Library
document to download and install the Windows UI Library. Please note:
Important: To use WinUI 2.1, your project’s Min version must be 14393 or higher and the Target version must be 17763 or higher.
Then, if you want to use the TreeView control in WinUI library, in your XAML page, add a reference at the top of your page
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
On the XAML page, you could directly input the following:
<controls:TreeView></controls:TreeView>

Why Android Studio 3.0.1 has no drawable(ldpi,mdpi,hdpi,xdpi,xxdpi,xxxdpi)

I want to know that why the latest version of Android Studio(3.0.1) has no drawable(ldpi,mdpi,hdpi,xdpi,xxdpi,xxxdpi), and has drawable-v21 ,drawable-24 and drawable folder only. for different resolution what we have to do?
I have few Questions here.
1) Whey not the drawable(ldpi,mdpi,hdpi,xdpi,xxdpi,xxxdpi) created by default as before?
2) What is the purpose of drawable-21 and drawable-24?
First : ldpi,mdpi,hdpi,xdpi,xxdpi,xxxdpi are not created by default here are the sites that will help you to create it easily https://romannurik.github.io/AndroidAssetStudio/ and https://www.img-bak.in/.
Second : When you set images in folder drawable-21 and drawable-24 it means that images or drawables inside that folder is the one to be use if the device SDK version is 21 (Lollipop) or 24 (Nougat) is met. The purpose of that is for compatibility.
1) Whey not the drawable(ldpi,mdpi,hdpi,xdpi,xxdpi,xxxdpi) created by default as before?
As you can see you can now add vector graphics to android project.
Folders are not created to bring attention to vector graphics support and to discourage using bitmaps for icons and to escalate problem to ask questions like you asked. You can now include PhotoShop psd files and SVGs to your project. If you min target below API v21 it will automatically create bitmaps for all resolutions. If above it will use VectorDrawable and apk size will decrease drammatically, since images for highly-dense devices contribute too much to apk size.
2) What is the purpose of drawable-21 and drawable-24?
21 and 24 correspond to different API versions. So that you can have different design for Android 6 and Android 7.
to find the drawable ldpi,mdpi,hdpi,xdpi,xxdpi,xxxdpi and all
In IDE at left top corner select Packages instead of Android
under Packages you can see the Libraries -> drawable-hdpi,drawable-hdpi-v4, drawable-en-hdpi,drawable-ldpi,drawable-mdpi,drawable-xhdpi, drawable-xxhdpi and so on
drawable-21 and drawable-24 are api specific as said by Access Denied.
Thank you

Visual Studio 2015 won't display local web page (ms-appx ?)

I'm converting an app to run as a Universal Windows App using VS 2015 Community. If I create a webview using the toolbox, I can enter "http://www.google.com" into the Source property, and it will display google.
If I use the drop down on the Source property to reference (say) Help.htm as a local resource, the source windows displays "ms-appx:///Help.htm". Similarly if it is in Assets, it displays "ms-appx:///Assets/Help.htm". When I run the program, where the webview should appear it displays "You will need a new app to display this ms-appx" and invites me to search the store.
I can display a local image in an image box with very similar syntax, with Source being "ms-appx:///Assets/StoreLogo.png". The Source property in this case is in the "common" group, not "miscellaneous", but apart from that appears virtually identical.
Nor can I specify a local path in a URI (although again I can display Google). Behaviour is identical on two different machines. I have spent several days trying to work out what is going on; any suggestions?
Can you please try to load file through code and share results?
public MainPage()
{
this.InitializeComponent();
mywebview.Source = newUri("ms-appx-web:///Help.htm");
}
also try this
mywebview.Navigate(newUri("ms-appx-web:///Help.htm"));
If both above options doesn't work. Please change to below and share results
mywebview.NavigateToString("<Html><Body><h1>Eureka!!!!<h1><Body></Html>");
If you are using it from a Library project, you must also add the name of the library, like that:
ms-appx-web:///[Library]/Help.htm

How to control the size of the downloaded map area for each zoom level in OSMDroid?

I'm using offline maps downloaded from OpenStreetMaps on my Android application.
When I move the map some tiles do not appears.
I whould like to choose the area of n kilometers by m kilometers or something else.
You are curently just getting the tiles osmdroid has in it's cache. It caches tiles automaticaly as it downloads the. There is no easy way of getting tiles into the cache without first trying to display them with online enabled.
If you realy want offline support you have to prepare a file with the tiles you need and get it into the sdcard/osmdroid/ direcrctory. The simplest method of creating the file is to use a tool like Mobile Atlas Creator I would recomend the GEMF format over .zip it just works far better procedure is the same just copy the file and it is found automaticaly.

How to serve tiff WMS imagery through GeoServer

I am new to the GeoServer/database world. I have never done any database work before, but I need to set up a WMS using GeoServer as part of my student internship.
I am using GeoServer 2.0.1 in standalone mode (downloaded using Jetty) with PostgreSQL 8.4 installed. I went through nyc_roads and nyc_buildings install demo in the GeoServer documentation but I still do not understand how I should go about serving up some test images. I noticed that the nyc_roads setup included a .sql file that was responsible for setting up the nyc_buildings database. I do not know how/where this file was generated.
Our test images are .tiff and .jpeg. I have successfully been able to do a WMS call on the local GeoServer machine, and have opened the included demo imagery. I now wish to add these .tiff and .jpeg images to GeoServer and access them through WMS. I have tried copying the images to the GeoServer data directory, adding a new data store and layers, but I always receive an error regarding the input stream.
I am sorry if I am leaving out vital information, this is as much as I know.
EDIT:
As described in the comment below, I am confused as to why GeoServer wont publish a GeoTiff image layer. I've made a separate workspace and data store for it. When I go to add the GeoTiff image, the bounding boxes/Geo coordinates are read properly, along with the correct EPSG format. When I'm happy with the settings, I click save, but nothing happens. No error messages or warnings.
Upload your GeoTIFF (*.tif) file to a folder on your server.
Open GeoServer home. Sign in to the server (default user admin pwd geoserver). Select WORKSPACES on the left menu.
Create a new workspace and call it whatever you want.
Create a new store
and choose GeoTIFF.
Click on the BROWSE button next to the fileName and select your GeoTIFF.
If it is properly created, the bounding box should appear with the correct coordinates. Select WMS service (VERY IMPORTANT).
Check this tutorial for a complete run through.
Call WMS layer from JavaScript using Openlayers.

Resources