maps

How to display a custom map on Android [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-04 17:29:09
I'm trying to make an Android application that displays a map of a Park and when a user taps on a certain location on the map, the application goes to another screen. Problem is that currently my map of the park is in a .jpg format. Which mapping API is best for my application and how would I go about converting this .jpg map into a format that is accepted by the API. Thanks! Adding an overlay for Google maps with a custom map is pretty easy to do, the sample code works out of the box. To overlay the map you need to have a rough idea of the gps coordinates of the park. There is the sample code

iterative closest point library

回眸只為那壹抹淺笑 提交于 2019-12-04 15:13:13
is there any c++/c open source implementation? i got two point clouds and would like to match them.. any ideas? Give LibICP a shot, although I personally have not used it so far. http://www.cvlibs.net/software/libicp.html EDIT: I tried it by myself, not a great experience -- the library is short of documentation and example code. Also, I didn't receive much help from the authors too. I wrote a article about accelerated line search on ddj.com some time ago. I dont exactly understand what you want to do but the approach shown there divides the whole area into "quadrants" of a given search width.

Navigation apps with IntentChooser- it's the same query?

二次信任 提交于 2019-12-04 14:56:22
I try to invoke the navigation from my applicatoin. I call with this query: String link = "geo:" + posInfo.getLatitude() + "," + posInfo.getLongitude(); Intent navigateIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(link)); Intent chooser = Intent.createChooser(navigateIntent, ctx.getString(R.string.navigate_intent_chooser_title)); ctx.startActivity(chooser); The intent chooser displays 2 apps: GoogleMaps and Waze. The navigation with Waze works perfectly but with Google maps it doesn't work. I get the map displayed but no navigation instructions. If I use GoogleMaps directly then I can

Overlay.draw() calls many times

笑着哭i 提交于 2019-12-04 14:56:16
I have a question regarding the draw() method of the Overlay class in Android Maps. When I move map, method draw() get called a few times (from 4 to 13). It's a problem for me, because this method must repaint my route with 70000+ points, and this is a lot resources. I can't find description for this problem, but when I use code examples from any sources, I have same problem. This is the normal behaviour. When you move the map, you expect it to move smoothly and to achive that any map movement is slipt in smaller movement steps. For the sake of consitency, the draw() method on the overlay is

Fix up shapely polygon object when discontinuous after map projection

一笑奈何 提交于 2019-12-04 14:16:19
This demo program (intended to be run in an IPython notebook; you need matplotlib , mpl_toolkits.basemap , pyproj , and shapely ) is supposed to plot increasingly large circles on the surface of the Earth. It works correctly as long as the circle does not cross over one of the poles. If that happens, the result is complete nonsense when plotted on a map (see below cell 2) If I plot them "in a void" instead of on a map (see below cell 3) the results are correct in the sense that, if you removed the horizontal line going from +180 to -180 longitude, the rest of the curve would indeed delimit the

Android itemizedOverlay's onTap action overrided

我只是一个虾纸丫 提交于 2019-12-04 14:00:07
问题 I have a class : class MapItemizedOverlay extends com.google.android.maps.ItemizedOverlay<OverlayItem> { private Context context; private ArrayList items = new ArrayList(); public MapItemizedOverlay(Context aContext, Drawable marker) { super(boundCenterBottom(marker)); context = aContext; } public void addOverlayItem(OverlayItem item) { items.add(item); populate(); } @Override protected OverlayItem createItem(int i) { return (OverlayItem) items.get(i); } @Override public int size() { return

Raster map with discrete color scale for negative and positive values R

不打扰是莪最后的温柔 提交于 2019-12-04 13:39:51
问题 I have two dataframes which I will like to map. The dfs have the same xy coordinates and I need a single colorbar with a visible discrete color scale for both dfs like the one shown here. I would like the colors in the colorkey to match the self-defined breaks. a more general solution that can be applied outside this example is much appreciated The RdYIBu color palette from the RcolorBrewer package is what I am after. My code so far: library(rasterVis) ras1 <- raster(nrow=10,ncol=10) set.seed

Java: Spring Framework: Declaring Nested Maps

血红的双手。 提交于 2019-12-04 12:33:52
问题 I get an error at 4th line saying: cvc-complex-type.2.4.d: Invalid content was found starting with element 'map'. No child element is expected at this point. <util:map id="entirePayTypesMap"> <entry key="34"> <value> <map> <entry key="default"> <value> <map key-type="java.lang.Boolean"> <entry key="true" value="3T" /> <entry key="false" value="3U" /> </map> </value> </entry> </map> </value> </entry> </util:map> Any suggestions? 回答1: For complex value types, do not nest the map element,

Geo chart for java

只愿长相守 提交于 2019-12-04 11:41:28
问题 Can anyone recommend a Java component that lets you create a pretty looking image of a world map, highlighting certain countries (based on some statistics). Something similar to this image: Something similar to Google Geo Charts (but for Java): https://developers.google.com/chart/interactive/docs/gallery/geochart but runs on the server side, without an internet connection. Ideally I'd like to attach weight to a few countries which would highlight them proportionally. Either open source or

Leaflet.js: How to remove multiple layers from map

喜你入骨 提交于 2019-12-04 11:07:06
问题 I am using Leaflet.js for a map. Now I want to remove added layers from the map. By clicking the input #button all checked checkboxes shall be changed to unchecked and all corresponding layers shall be removed from the map. To remove a layer from the map the id of the layer is needed. This id equals the id of the corresponding checkbox. That's why I use jQuery to get the ids of all checked checkboxes and store their value in an object, here called someObj.idsChecked . When I try to use the