openstreetmap

JMapViewer ADD tiles for offline view

橙三吉。 提交于 2019-12-11 02:25:50
问题 Hello I'm using this sample in Java to try to load OpenStreetMaps Offline tiles, for example I have my tiles on C:/OSM/tiles/ but I need to know how to add this information in map (JMapViewer) class to load tiles locally. Thank you very much for your help this is my source: //License: GPL. Copyright 2008 by Jan Peter Stotz import org.openstreetmap.gui.jmapviewer.JMapViewer; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; /** *

Overpass API Android Example?

∥☆過路亽.° 提交于 2019-12-11 02:06:46
问题 for study we have to develop an Android game which is location based. Currently we use OSMDroid to show the map. There are resources (like wood, stone, ...) which the player has to collect. These resources are currently stored in our backend with hardcoded long/lat and will be added with setMarker onto the current map. To provide this game globally, we want to set the resources dynamically based on the "real" world. So we need different layers from OSM (like forest, sea, ..) to set our

Display Markers, Popups with OpenLayer3

自作多情 提交于 2019-12-10 20:10:24
问题 I'm trying to understand how can I display markers/popups on osm map with openlayers3, I have found examples in examples on ol3 web page, but... Is there more examples for coding markers/popups with javascript or jquery, preferably something like this or similar examples. The idea is to mark a building, by clicking on the marker it will popup some info for the building, further more I would like to connect important places from the city to this building (library, restaurants, bus stops, etc).

Android OSM zoom level 19 and above

人盡茶涼 提交于 2019-12-10 19:59:57
问题 I'm new to Android Development. I have an application that shows a MapView and I've set a bounding box to restrict the user to only viewing the tiles in a specific area. The issue I have is that I need to zoom in, past level 18. Which I've also been able to do so by setting the max zoom level. However, there aren't any tiles available from the default tile provider for zoom 19 and above I really only require up to 20, 21 max too. Is there a way for me to create my own tiles? Have custom tiles

OpenLayers problem with marker icons

假装没事ソ 提交于 2019-12-10 18:13:47
问题 I'm creating OSM map in my web site and adding some markers with openlayer.. My problem is that I allways get the same icon for marker.. <script type="text/javascript"> var map = new OpenLayers.Map("heatMap"); var mapnik = new OpenLayers.Layer.OSM(); map.addLayer(mapnik); map.setCenter(new OpenLayers.LonLat(-4.0575942987957,54.390175926091) // Center of the map .transform( new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984 new OpenLayers.Projection("EPSG:900913") // to

OpenStreetMap often sends Gateway Timeout error

独自空忆成欢 提交于 2019-12-10 17:51:18
问题 I am using a leaflet map in program with the following code: <style> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin=""/> @import url(//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.2/leaflet.css); #map { width: 960px; height: 500px; } </style> <body> <div id="map"/> <script type="text/javascript"> var osmUrl = 'http://{s}.tile.openstreetmap.org/

Using Mapzen tiles with Leaflet

牧云@^-^@ 提交于 2019-12-10 15:50:38
问题 My reading of the Leaflet and Mapzen documentations suggest that in order to use a custom tile provider with Leaflet, one needs to do just two things: Specify the tile provider in L.tilelayer(urlTemplateToTileProvider) Set this provider to MapZen var urlTemplateToTileProvider = 'http://tile.mapzen.com/mapzen/vector/v1/all/{z}/{x}/{y}.mvt?api_key=apiKey' However, when I try this I end up with an empty map which then proceeds to display markers etc correctly. And yet a manual test for a

Leaflet OSM: Center mapview on polygon

╄→尐↘猪︶ㄣ 提交于 2019-12-10 13:48:52
问题 I want generate a html file including Leaflet library to show an OpenStreetMap view with a polygon. The polygon on the map should be centered. To do so i followed this discussion, but its still unclear to me, how to center an arbitrary polygon and autozoom it. Autozoom means to me, that the polygon is completly in the visible map excerpt and fills it. As example this would be the desired result: This is my code so far: var map; var ajaxRequest; var plotlist; var plotlayers=[]; function

Open StreetMap Reverse Geocoding

寵の児 提交于 2019-12-10 13:16:05
问题 Does anyone know of any open source projects that will allow reverse geocode lookups over Open StreetMap data? I'd prefer not to use an existing hosted webservice such as Nominatim since my dataset is large. 回答1: You can install Nominatim on your own, it can do reverse geocoding pretty well. There is also a Nomiatim instance hosted by MapQuest with a less strict usage policy. 回答2: there is also Gisgraphy that use openstreetmap data and geonames. it got 5 web services (geocoding, reverse

Address geolocation on own server

☆樱花仙子☆ 提交于 2019-12-10 10:59:20
问题 Disclaimer: Any API is NO OPTION for me because of the vast amounts of places I want to process. I know there are plenty of services out there but I'd like to have my own solution Ok, after this is said here my question :) There are platforms like OpenStreetMap and maybe others who are doing very well in bringing the world of maps into the open source community. What I need I have an address located anywhere in the world and I want to compute the latitude and longitude, elevation would be