I have a set of images I retrieve through a web service.
Is there a way to replace these with deep zoom? Obviously there is a lot more data for a deep zoom image so I would only want to grab what is needed at the time.
You can use the MultiScaleImage control to do deep zoom in Silverlight. See the documentation for deep zoom for how that's accomplished and how to set up your input.
Related
I have a Forge viewer app where I want the camera to fit the model bounding box if the orientation on mobile devices changes.
I load the model and set the camera to a specific position in the Autodesk.Viewing.MODEL_ROOT_LOADED_EVENT event. Then I fit the model with viewer.fitToView(). That works.
In the Autodesk.Viewing.VIEWER_RESIZE_EVENT, which is also fired if the orientation of the screen changes, I run viewer.fitToView() again but the camera doesn't change.
The function doesn't seem to even run, but there is also no error message. If I zoom out of the model before changing the orientation the camera distance doesn't change although it should.
Maybe I use the wrong approach here but I can't find the problem.
Found the problem: I have locked panning of the camera:
viewer.navigation.setLockSettings({"orbit":true, "zoom":true})
viewer.navigation.setIsLocked(true)
With those settings fitToView doesn't work. I now disable locking before fitting.
What would be the best way to draw a custom route on a QML Map with a set of given coordinates?
Basically, all I need is that the map highlights the path along the road and does not go straight to each point.
No animations needed either.
Edit:
I need it to be in a desktop application.
One option is to display a HTML website using Leaflet or OpenLayers. Both support displaying a GPX track. The track can be obtained by using one of the various online routers for OSM.
What is the difference between Ionic Framework vs Famo.us Framework. It is possible to use both framework in one project . Which One support smooth render graphic on mobile devices ?
Both framework support AngularJs?
Both frameworks work with AngularJS, but they come from a different direction and have different goals.
Ionic
is built on top of AngularJS and extends it, providing you with buttons, grids and other ready made UI elements to help you publishing your mobile app real quick. AngularJS focuses on data binding and the MVC structure of your app and doesn't really care about whether it's running in a desktop browser or on a mobile device. Ionic concentrates on the presentation of your app data and extends AngularJS to make it fit for use on mobile devices and supply you with design patterns that mobile users have come to expect. Since Ionic sits on top of AngularJS, you can't really have Ionic without Angular.
Check out Ionic's components to get a better understanding.
Famo.us
on the other hand strives for the fastest render performance. It just so happens that you can put regular HTML into a Famo.us Surface — which is the container that holds the content to be displayed. That content can be HTML, but doesn't have to.
Famo.us itself doesn't use the standard HTML reflow to position its surfaces in the viewport but its very own implementation of a render tree, so you're free to manipulate surface position and rotation, even in 3D space, with buttery smooth performance. HTML that is put inside a surface on the other hand uses reflows to position its elements just like you're used to. Read more about the render tree.
Famo.us can output to HTML, but can also render using WebGL or even Mixed Mode, combining DOM with WebGL. This allows for fancy graphic effects that wouldn't be quite possible with plain CSS. There's also tight integration with Easing and Physics to allow for playful and realistic animation.
Now that there's Famo.us/Angular, I don't see why you couldn't use Ionic and Famo.us in the same app, although I haven't tried it yet.
Summary
Ionic sticks with the regular DOM for rendering and focuses on mobile design / UX patterns. Famo.us disregards the DOM and lets you (read: requires you to) build / populate the render tree, provides physics and allows for more complex and fluid animations. This also means that using Famo.us comes with a learning curve. Good thing is: you don't have to go 'all in', since you can build certain views of your app with Famo.us and then use regular HTML/CSS for everything else.
ionic lists work well when famous is loaded in the same index.html SPA.
Some things like touch to pan in angular-google-maps stop working when ionic and famo.us share the same page.
Transitions from a ionic tabbed state to a detail view using ion-nav-bar animate badly too.
So i recommend you to keep things separated just by switching your app from famous.html to ionic.html as needed. each implementation having its own stack of dependencies and its own separated styles as they come in the sample apps.
you can transition by using document.location.href
i think you can find a way to transition to specific states from one world to the other by setting the proper state in the url.
I want to develop a multi-paint: An application, which each user can paint route on a map, save the route, and in the end all the saved routes will be "merged" into one big picture (like layers in photoshop)
How should I save the routes? List of pixels to be drawn? Save it to picture (with transparent background?)
The application will be developed in WPF on bing maps (on touch device).
Thank you very much
You would have to save the latitude and longitude values of the route points, perhaps in a LocationCollection, which is part of the Bing Maps WPF Control API.
Simply saving the pixels wouldn't work when you want to be able to zoom the map.
I created a website separately first and then opened it in Expression web to insert the deep zoom image in, but I keep getting this error:
"Add the page to a site and then try to insert the deep zoom image"
I have no idea what to do next, could somebody please point me in the right direction?
Where are you inserting the image? Deep zoom image is not a single image. It is collection of images. One embeds the deep zoom player that comes with deep zoom composer into a web page to display those images. Did you use deep zoom composer for creating deep zoom images? You can try http://www.imagesurf.net which allows online automated deep zoom/open zoom of photos and also allows to embed it in your web page. I am affiliated with the site.