I have 2 vector tile sources, the format is like this:
http://35.137.120.5:8080/geoserver/gwc/service/tms/1.0.0/country:layer1#EPSG:900913#pbf/{z}/{x}/{y}.pbf
http://35.138.119.4:8080/geoserver/gwc/service/tms/1.0.0/country:layer2#EPSG:900913#pbf/{z}/{x}/{y}.pbf
I need to display them on top of each other (2 layers).
However, I cannot find any example from any library that shows how to display vector tiles from 3rd party sources like this. I have looked at flutter_map, and mapbox_gl, but still couldn't find any example for this feature.
Can someone make a small, complete main.dart that solve this problem? Thank you.
In web apps with leaflet, you have one style that use several sources (vector tiles, bitmap tiles…)
Related
I'd like for my road-path-smooth elements to show at a lower zoom level than they currently are because my application is for the outdoors and these are more important elements. Is that possible? I can't seem to find out how to adjust this in studio.
If you're talking about displaying layers from the Mapbox Streets tileset, then no, it's probably not possible. The vector tiles are optimised for Mapbox's style (also, confusingly, called Mapbox Streets), and don't contain data that isn't already displayed.
Your need is a common one, but unfortunately the only way to solve it is to find a different set of vector tiles that meets your needs, or create one yourself.
Ok, here's my problem. I have a HUGE jpg file, 18000 x 18000 pixels 41MB in size.
If you really need to know, it's a map of a section of the country with services.
My project is really simple. I just need to be able to zoom and display this granddaddy size image. All the way from aspect fit to 100% on the iPhone. I'm not too sure if this can be done or how long it will take. Would appreciate any insights.
I have tried using imageView but I read that it really shouldnt exceed 1024 x 1024. That is way below what I have. If you have an idea how to go about doing this, please share!
You should split the image into tiles, at a range of magnifications. Calculate and build these off-line, and ship them as individual files in the app bundle. Given the zoom in your display, pick the closest zoom size. You then select which tiles are needed to cover the screen, and make a grid of them. As the user zooms, select the appropriate tile size.
The benefit of this is that you don't ever have to load HUGE files into memory, only as much as needed.
This is how Google maps does it.
Can't give you any code, sorry!
You should follow an approach similar to what Google Maps and other map sites do. You need to slice the whole map in sections, so the users don't need to load the whole map if it's not always necessary (plus makes loading time way faster)
There's a couple of solutions that might work for you like OpenLayers or even creating a Custom Google Map with your images as seen here and here
Here is an example from Apple for processing large images called PhotoScroller. The images have already been tiled. If you need an example of tiling an image in Cocoa check out cimgf.com
I'm completely newbie to Qt
i want to create a 800X600 window that just show some circle and be able to manipulate pixels of the form. there is no interaction between user and form(no click, no dblclick,...) it just shows some circles with one color and lines with different pixel colors(each line may have different pixel colors)
also i want to be able to change the coordination system, i mean change it from top-left to the center of the window. could anyone help me do that with some sample code?
thanks in advance for your reply.
Please try downloading the Qt Creator (IDE), then reading through the tutorials. There's a whole host of very useful information provided for free, including a lot of the code samples you are looking for.
The following examples might also be of particular interest:
Animation Framework Examples
Graphics View Examples
Painting Examples
We have a requirement in flex, where we need to have a 3D layout base and inside it we have 2 column charts with 3D effect.
I have attached the screen shot for reference.
I have seen couple of samples in which there are 3d effects but not like the one which i have attached.
Wanted to know, whether it is possible to achieve using Flex 4. Otherwise we need to use flash inorder to achieve this. I have seen the exact sample in flash,
http://www.irishlife.ie/iframe/pension-calculator-2.0.html
Need to build this using FLEX 4. So in case of any samples or thought process of how to achieve this please let me know.
Thanks in Advance,
Regards
Srinivasan.C
amCharts will do this with Flex 4.
See for example: http://flex.amcharts.com/examples/stacked_3d_column_chart
You can use AnyChart
http://anychart.com/products/anychart/gallery/
you can download both .swf or .swc files from the said site.
I am creating an iPhone app for OS4.0, and I am attempting to integrate a custom map with a standard MKMapView. I have been provided a map in .eps format (vector image), and I want to somehow overlay this on an MKMapView in and restrict the scrolling boundaries of the map so users cannot scroll outside the boundaries of the custom map. What's the best way to go about this?
I have read some stuff about hosting map tiles on a server, but this seems overly complex for my application. This would just be a map for an attraction roughly the size of a public zoo, so I would think that it would be conceivable to just convert the .eps to a .png file, and overlay it, but this might not give the best performance.
I understand that I could conceivable use a UIScrollView to do the job, but the problem is that I have dynamically generated MKPinAnnotationViews placed on the map, whose position must be based on latitude and longitude, so I can't think on an elegant or reasonable way to do it with a scrollview. Any ideas?
Thanks!
-Matt
Apple has a great bit of example code that will show you what you need to do. Check out the TileMap sample - it is available as part of the (free) WWDC 2010 samples download.
It shows you how to use the gdal2tiles utility to convert an input map into a tree of overlay tiles.
Another good bit of Apple sample code to check out is HazardMap, which is part of the regular SDK samples.