openstreetmap

No map shown in osmdroid

亡梦爱人 提交于 2019-11-28 11:06:09
问题 I tried to make an osmdroid project using Android Studio but any map is shown. I have just a blanck grid. In my xml file I put the folowing code : <?xml version="1.0" encoding="utf-8" ?> <LinearLayout xmlns:android="..." android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <org.osmdroid.views.MapView android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" tilesource="Mapnik" /> </LinearLayout> in my

How to draw circle on the MAP using GMAP.NET in C#

拟墨画扇 提交于 2019-11-28 10:34:56
问题 I am using GMAP.NET in c#. I am able to display the map on the form, now i am trying to draw a CIRCLE mouse by clicking on a certian point, keeping the left mouse button and dragging the mouse upto specific place. Once the circle is drawn I want to get its radius in miles from the center point which I am sure GMAP is capable of doing it. I am using Opentstreet maps. I am just unable to achive this functionly, anybody who has played with GMAP control kindly share your experience with some code

Get list of all intersections in a city

强颜欢笑 提交于 2019-11-28 10:17:20
What is the best source and way to get a list of all intersections in a major city? tyr If one doesn't mind a few false positives the following Overpass API script gets road intersections out of OpenStreetMap data pretty easily: http://overpass-turbo.eu/s/QD (the script can't detect false intersections – where only two lines meet, though, e.g. when a road is represented by multiple way objects in the OSM data) In case that the script goes offline a more readable version directly here: Dependent on which kind of ways you are interested in, add the types of ways which should not count as

Min/max zoom level in OpenLayers

泄露秘密 提交于 2019-11-28 09:02:49
I'm using OpenLayers to display a map in a web page. I am using tiles from CloudMade, but the same issues occur with the Mapnik tiles from OpenStreetMap. I'm trying to restrict the map so that the user cannot zoom all the way out to world view -- I want them to stay at roughly a city level zoom at minimum. I have tried using the minZoomLevel / maxZoomLevel / numZoomLevels properties; only the maxZoomLevel and numZoomLevels properties seem to work, whereas the minZoomLevel property seems to be completely ignored. Is there another way to accomplish this? minZoomLevel is not supported for XYZ

open street maps api for android

笑着哭i 提交于 2019-11-28 03:40:43
Does anyone know where I can find the open street maps api for android? I have searched the site and all I can see is other peoples implementations of it. I'm looking for one which can be integrated into another app and fully customized. NickT You can integrate OSM by using the Osmdroid API. This gives you functionality very similar to Google maps but you can also use OSM tiles offline if you prepare the tiles with Mobile Atlas Creator (MOBAC) See Osmdroid home page (GitHub) You just need the osmdroid-android-3.0.5.jar in your build path. You don't need an API key like Google demands and tiles

RoadManager for osmdroid error

穿精又带淫゛_ 提交于 2019-11-27 23:10:53
I am following a tutorial here https://code.google.com/p/osmbonuspack/wiki/Tutorial_1 but I have encountered an error that it doesn't show the correct route correctly. It just shows a straight line from Point A to Point B. What I want to achieve is to show the correct route from these points. I'm guessing the error is that it doesn't recognize any nodes to go through. A similar question has been also asked and I am assuming I have the same problem if I haven't explained my question well. Similar question can be found here: OSMDroid Routing problems when following a tutorial Here is a part of

Python ElementTree support for parsing unknown XML entities?

橙三吉。 提交于 2019-11-27 19:47:42
I have a set of super simple XML files to parse... but... they use custom defined entities. I don't need to map these to characters, but I do wish to parse and act on each one. For example: <Style name="admin-5678"> <Rule> <Filter>[admin_level]='5'</Filter> &maxscale_zoom11; </Rule> </Style> There is a tantalizing hint at http://effbot.org/elementtree/elementtree-xmlparser.htm that XMLParser has limited entity support, but I can't find the methods mentioned, everything gives errors: #!/usr/bin/python ## ## Where's the entity support as documented at: ## http://effbot.org/elementtree

Open Street Maps with Android Google Maps Api v2

百般思念 提交于 2019-11-27 14:01:01
问题 Is it possible to use an open street map provider with the new Google Maps V2 Api on Android? If so can you provide an example, or documentation? I have looked quickly at the docs and found UrlTileProvider() , so it looks likely this is possible. Bonus: Is simply using the MapFragment class with OSM tiles still bound by the Google Maps TOS? 回答1: You need to extend the UrlTileProvider class so you can define the URL for OSM tiled maps and add a tile overlay like that : MyUrlTileProvider

How to create map tiles from OpenStreetMap offline, display it on Android?

纵饮孤独 提交于 2019-11-27 11:15:45
What I want is to display a simple offline map using OpenStreetMap. I cannot find in the web the right tools to create map tiles and use it to display a map in Android. I have downloaded different resources but it seems that I don't have any idea where to start. I want to integrate images from OpenStreetMap using JOSM but i don't know if I can use it on Android. Can I use Mapnik? Your help will a great thank you. I'm currently developing (my first) Android application using the OpenStreetMap (OSM) API, so while I can't help you with the JSOM, I can try to help with the OSM part: Assuming that

Unable to display only the points within a specific range (circle) using the .getBounds() function (Leaflet)

久未见 提交于 2019-11-27 08:34:19
问题 I am trying to display a certain amount of points within a specific range, that is within a circle . But when using the .getBounds() function for comparison to see whether the point is within the bound, i get some points outside it as shown in the screenshot below: Map Screenshot The code currently using to check if the point is within the circle bound is below: echo ' var mark = L.marker([' . $r->coordinates[0]->longitude . ',' . $r->coordinates[0]->latitude . ']); if(circle.getBounds()