Setting a custom zoom level in google maps - maps

I am using google maps api and would liken to get a zoom half way between two settings. Is this possible and how would I go about it?
Thanks

Although Mapview workd internally with continuous zoom level variation (you can see it because in zoom animations, getProjection() is aligned with intermediate zoom levels), the API only makes available for selection integer zoom levels.
Regards.

Related

Here Maps slow loading tiles

I'm using (or try to) Here Maps for my iOS Application. I just downloaded the example project. Just including the map and a few markers (Same problem without markers).
The problem is, when I try to zoom in our out with the pinch gesture (using the build in function from hereMaps) the tiles turn white with the "here"-Logo on in and it takes several seconds to load the real maptile. Thats waaaay to slow. Compare it to google maps, there is not a single loading tile. I did not changed anything. Don't know what to change anyway, its just a few lines of configuration code.
The question is: Is that the normal behaviour? Is there a few to speed it up?
Testet with several WiFi's. Screenshot attached.
Thanks! :)

Bing Map : generate local map tiles for US zip codes, counties, states in C# WPF Visual Studio 2013

I am trying to generate local map tiles for US states, counties and zipcodes so that I can mark them as polygons on Bing Map from C# Visual Studio 2013 WPF on win 7.
I am following the instructions at:
https://blogs.bing.com/maps/2015/08/24/local-tile-layers-in-bing-maps-wpf
http://research.microsoft.com/en-us/um/redmond/projects/mapcruncher/tutorial/version3.0docs/index.htm
https://msdn.microsoft.com/en-us/library/gg427619.aspx
I am tring to use thr MapCruncher make the tiles. But, I do not know how to get an image for a state, county, or zip code such that I can use the MapCruncher to get the map tiles.
I need images of them without borders because an image is normally a square with some white bounds around the state , county, or zip code polygon area.
Also, because I need to make all local map tiles for all US states, counties and zip codes. It is impossible to make them manually by the MapCruncher tool.
How to make them by MapCruncher code ? Or are there C# codes that can do these ?
Any help would be appreciated.
Thanks!
UPDATE
From the link of
https://xyllyg.dm2302.livefilestore.com/y3mmTyuxpIVtzGHj0t4gvQwZND2Ei2-lqB-TsyjedXzPnAujjXOMzKXnH5ZBjSO-47Ml2AOx1N5buA0iNxz_DfS7J9jn-hO_0Hxy2GG-BYwByJt7Z6LfWTXs7HDpaKG9vSpQuqPniJ6DVdddignj-3itM7VvWqnHOXoW6FESYMQ-No/Managing%20and%20Visualizing%20Geospatial%20Data%20with%20Bing%20Maps%20Whitepaper%20v01.pdf?psid=1
I have found the example in Section of "Thematic Maps from Bing SDS" at page 28.
But, the code example at https://code.msdn.microsoft.com/Managing-and-Visualizing-f42fdd5c
requires Visual Studio 2015, Windows Azure Storage, Apache Cordova, Bing Spatial Data Services .
These are not available in my working environment. Are there examples of Visual Studio 2013 ?
Also, how to use your techniques in Section of "Thematic Maps from Bing SDS" for OpenStreetmap ?
There are a lot of different ways to do what you want to do. If you want to overlay raw boundaries on top of the map you likely will run into performance issues if you try to render more then a few hundred detailed polygons such as counties or Zip codes. If you only want to view this data when zoomed in close you could load in the data as needed for where the user is viewing. You could upload the boundary data into the Bing Spatial Data Services and easily retrieve it from there.
If you want to be able to view the data at all zoom levels, then turning your data into a tile layer would be the best option. Since the data you will be working with is in vector form (raw data, not an image), MapCruncher won't work for you. Instead you will need to do one of the following:
Dynamically generate the tiles from the raw data on the fly. This will allow you to support all zoom levels without needing Petabyte's worth of storage. This is a great approach to use when you need tiles that cover a large area, or when the data changes regularly. In fact, the tiles used in Bing Maps do this as the storage requirements for 117 languages and all zoom levels would be in the 1000's of petabytes. I have a white paper outlining how to do this and code samples here:
https://onedrive.live.com/redir?resid=D35222484A76A01!361218&authkey=!AMEJsKW8h_HUbOg&ithint=file%2cpdf
https://onedrive.live.com/redir?resid=D35222484A76A01!323177&authkey=!AId01rJ-JPDPZMw&ithint=file%2czip
Use a tool to generate tiles from raw data. I have a code sample that does this here: http://mapstoolbox.codeplex.com/ Take a look at the WPF Spatial Data viewer. It allows you to load spatial data from different file formats and then generate map tiles out of it. Note that each zoom level has 4 times the map tiles as the zoom level before it. If you are looking to generate map tiles over the US, you will likely find that once you get to zoom level 8 or 9 you will need a lot of storage and the file system will likely be really slow. At that point you would need to look at storing the tiles in a database system to speed up querying the tiles. I would only recommend this approach if you only wanted tiles for a small area and a few zoom levels, otherwise the storage requirements will likely make this an unusable solution. If you do go this route you might want to look at storing the tiles in Azure blob storage as it is cheap and would allow you to store a lot of tiles much easier than you could on your local machine.
The dynamic tile approach would likely be your best option. You could try taking it a step further if you are only using WPF and generate the tiles in the app rather than in a web service, although using a web service would make it much easier to migrate your app to another platform in the future, such as Windows 10, or web. If you want to generate the tiles in the app, you can take the code from the white paper and integrate it with the code sample here: https://blogs.bing.com/maps/2015/08/24/local-tile-layers-in-bing-maps-wpf/

Mobile games how to handle different resolutions in Unity and NGUI?

I have a mobile game developed by U3D and NGUI and targeted to platforms such as android and IOS, but there are so many mobile resolutions and aspect ratios change from 1.3 to event 2. My UI are designed under resolution 1136x640, and UIRoot Scaling style is FixedSize, Manual Height is 640.
I am not going to use anchors in NGUI widgets because distance is defined in pixels but not in percentages, when resolutions are changed, relative position of widgets are also changed, this is not what I want.
I refer this but still have no idea to handle this tricky problem perfectly, I need some suggestions on how to use NGUI in right way to handle different mobile resolutions.
The newest (3.x.x) NGUI allows you to use their new anchoring system. As you said, it is specified in pixels, however you can specify different targets and distances to different edges, and it will behave similarly to percentages.
Are you familiar with NGUI team videos explaining their new releases?
https://www.youtube.com/watch?v=6k5iIzKTEBQ
Some of the information there could be helpful, and playing with Custom settings of anchors either.
Another useful things is to create scaling script attached to root, which scales all elements down, basing on the detected dpi. If your UI is prepared for phones, you probably won't need all the buttons to take the same percent of the screen on tablets.

WP7 Bing map control is not movable when it is dragged slowly

I used WP7 Bing map control to display the map. I want to do a precision drag on map. But when I dragged the map slowly (less than 4-5mm/ second), the map were not moving. I tried to use Bingmap application, and it had a good result - the map was moving when I dragged slowly. Is there anyway to make the Bing map control work fine like Bingmap application? Please help me. Thank you very much.
You may want to set the CacheMode of your Map to BitmapCache, this should improve performance, as detailed in the following blog post :-
http://mindre.net/Article/windows_phone_7__cachemode_and_why_it_matters

Looking for a simple Silverlight map component

I am looking for a light-weight map component that displays a map of the US and allows users to click on a State and see information pertaining to that state. The data I want to display is in my database. I just need to know what state was selected so I can display the detail. This is something I am doing to get familiar with Silverlight.
All the searches for Silverlight/ Maps I have done so far have pointed me at solutions that are far more complicated than I need. My perception is that using Bing Maps to do this simple task would a waste of the features provide by Bing.
Anyone know of such a Component? Am I wrong that Bing Maps is not the right tool for the job?
TIA!
If you have access to Expression Studio (specifically Expression Design), creating maps as vector based images is quite easy. Poly-paths in Xaml are also relatively efficient to store and serve up compared to images.
You import a map as a background image and use the pen tool to dot-to-dot trace around the country. Combine all those path segments into a single path. Then create a separate poly-path for each state (close them to allow for a fill).
It will take a few hours to build all this (I know having done this for a world map country selector... took 4-5 hours solid for the one polygon styled below):
By having each state represented by a filled polygon-path highlighting (by changing the fill colour) is trivial on mouse-enter/mouse-leave events.
If you want stylistic map, remove the image, otherwise use transparency on the state polygons to show the map through the roll-overs.
Update:
And if you get yourself a graphic tablet and pen this sort of point-to-point work is about 5 times faster than with a mouse!
The interaction with Bing Maps in Silverlight is really strong and provide you with easy communication between the map and your data. I would give Bing Maps a try.
I'm not sure if you've already come across this, but it seems you can also use the control with custom tile sources. Here are a few resources.
http://www.cadmaps.com/gisblog/?p=54
http://developers.de/blogs/damir_dobric/archive/2009/11/16/implementing-custom-map-in-silverlight-map-control.aspx
http://labs.mandogroup.com/skinning-the-silverlight-bing-maps-control/
Custom Rendering in Bing Silverlight Control

Resources