maps

How to let users choose their town, so my app can know coordinates

浪子不回头ぞ 提交于 2019-12-24 17:04:46
问题 I am starting my first Open Source ASP.NET project in C#. Data that Web app is going to show is in close relation with geographic coordinates of towns. Now I want to implement user interface where user of web app can choose a desired town and submit form, and behind scene i want to get coordinates of chosen town, so I can make calculations. Now I wondering is there some free services or library, which can I implement to get wanted results? Does Google's Maps provide this feature or there is

Draw custom map tile images (.pngs) on top of Google Map - Android

心已入冬 提交于 2019-12-24 15:58:08
问题 I have png images of map tiles over parts of the UK and i want to draw them on top of the google maps view, I have everytyhing set up, just want to be able to draw the tile images now. My main class extends 'MapActivity', can i add a canvas function to draw them? ALso, I only obviously need to draw the tiles that are in view on the phone while the tiles out of view should not be drawn. 回答1: You can add an Overlay to the MapView, that will get you a canvas to draw on. See http://code.google

PHP Radius Search

為{幸葍}努か 提交于 2019-12-24 14:54:14
问题 I'm going to build an app where the users can see points of interest in a predefined radius around their location. My first idea was to store the latitude and longitude of all POI's in a database and comparing the users location with the POI's location via SQL. The problem is the performance I think. If there are thousands of POI's and thousands of user requests with their location, it wouldn't be very economically or is this no problem for todays servers? My next approach was to divide the

How to Make a RasterBrick from HDF5 Files? R

左心房为你撑大大i 提交于 2019-12-24 13:03:02
问题 How can one make a Rasterbrick in R from several hdf5 files? Often, data are provided in hdf5 format and one has to convert it to a more friendly format for easy handling. At the moment I know of the rhdf5 package but how to get a RasterBrick is that which I am unsure about. source("http://bioconductor.org/biocLite.R") biocLite("rhdf5") library("rhdf5") library("raster") You can access several hdf5 files on this link http://mirador.gsfc.nasa.gov/cgi-bin/mirador/cart.pl?C1=GPM_3IMERGHH

Creating Google Maps' interface in Dojo

时光毁灭记忆、已成空白 提交于 2019-12-24 10:57:00
问题 I am trying to use the ArcGIS 2.1 JS API to create a custom interface that looks similar to Google Maps. What is confusing me (particularly with Dojo's layout scheme) is how Google Maps has a map pane that extends the whole width of the page and has a left search results panel that seems to be floating above the map pane. How does this work in terms of Dojo layouts? I have frustratingly worked with BorderContainers and looked at the documentation for a FloatingPane with no avail. Any

Geomapping Data in Shiny

柔情痞子 提交于 2019-12-24 10:37:18
问题 I have two set of data that I am attempting turn into geomaps using rshiny. I have been able to get the coordinates of my locations, and have been able to get them mapped on R. I am now starting my coding block for Shiny. Sample Data: | X1 | Location | Longitude | Latitude | 1 | 1 | Brooklyn, NY, USA | 40.678178 | -73.9441579 | 2 | 2 | Liverpool, UK | 53.408371 | -2.9915726 | My ui returns my titles and select boxes, but regardless of what I put in my server I am not getting anything else on

How to size a Google Maps InfoWindow in Javascript (v3 API)

℡╲_俬逩灬. 提交于 2019-12-24 10:14:47
问题 Yes. This is a duplicate of Google Maps API v3: InfoWindow not sizing correctly. However , none of the solutions offered on that question worked for me :( code: //after getting a 'position' object: var mapPos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); var mapOptions = { zoom:16, center:mapPos,mapTypeId:google.maps.MapTypeId.ROADMAP }; var yourLocationMap = new google.maps.Map(document.getElementById('locationMap'), mapOptions); var infoContent = '<div style

Creating an event on a map maker

孤街浪徒 提交于 2019-12-24 08:22:28
问题 //Final Code var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: new ol.source.OSM() }) ], view: new ol.View({ center: [0, 0], zoom: 3 }) }); // -- GeoJSON layer -- // Define a GeoJSON source that will load features via a http call. By // specifying the projection of the map's view OL3 will transform the coordinates // for display var planningAppsSource = new ol.source.GeoJSON({ 'projection': map.getView().getProjection(), 'url': 'http://localhost/osgis-ol3-leaflet

leaflet - count number of requests sent by leaflet to osm (openstreetmap)

你。 提交于 2019-12-24 07:22:05
问题 I'm using leaflet.js for a project. Leaflet sends requests to open street map (osm) tile server to get its tiles. As these requests are sent directly from the client, I have a hard time finding about the requests on my server. Question: Is there a way to find out the number of requests sent by leaflet to the tile servers at osm? (I was not able to find any $.ajax / $.get / $.post in leaflet.js!) 回答1: Please note that $.ajax / $.get / $.post are methods from jQuery. Leaflet does not depend on

Google maps Info Window Overlay content just like that in maps.goole.com

大憨熊 提交于 2019-12-24 07:04:14
问题 I want have the info window content for a marker just a s below My code so far is loadEmbeddedMap : function() { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initEmbeddedMap"; document.body.appendChild(script) }, initEmbeddedMap : function() { var myLatlng = new google.maps.LatLng(40, -80); var myOptions = { zoom: 8, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new