maps

Leaflet polygon with fuzzy outline

半世苍凉 提交于 2020-01-01 03:39:05
问题 I am looking for a way to have a fuzzy/blur/gradient outline of a leaflet polygon. This should help make country outlines more simple (currently, when you zoom in to a svg representing a country, it gets ugly/inaccurate). I was thinking about attaching CSS attributes to the svg similiar to this: http://www.w3schools.com/svg/svg_fegaussianblur.asp But apparently the svg subelement <g> (used for the leaflet polygon) does not accept this. I also had a look at <defs> of svg (see here: http:/

How to highlight a region on Google Maps

℡╲_俬逩灬. 提交于 2020-01-01 02:18:07
问题 How can I highlight/cover a region or multiple regions with different colors (for example 3 US states), using google maps polygon arrays? I found a tuto on google code about how to draw a polygon but it's not giving detailed information. Thank you for your help. 回答1: This documentation on Google is about as straight forward as you can get. http://code.google.com/apis/maps/documentation/javascript/overlays.html View the source of this page. Copy and paste the code into your own page and start

Chapter 10. Parallel-Split Shadow Maps on Programmable GPUs

旧街凉风 提交于 2019-12-31 11:19:25
https://developer.nvidia.com/gpugems/gpugems3/part-ii-light-and-shadows/chapter-10-parallel-split-shadow-maps-programmable-gpus shadow mapping (Williams 1978) has been used extensively in 3D games and applications for producing shadowing effects. however, shadow mapping has inherent aliasing problems, so using standard shadow mapping is not enough to produce high-quality shadow rendering in complex and large scenes. in this chapter we present an advanced shadow-mapping technique that produces antialiased and real-time shadows for large-scale environments. we also show the implementation

Adding a pin annotation to a map view on a long press in swift

和自甴很熟 提交于 2019-12-31 08:13:35
问题 I'm trying to make an iPhone app which requires users to be able to long press on a place on a map view to drop a pin there. Does anybody know how this is done? The behaviour is observable in apple maps when you long press on the screen. It will drop a pin and present an annotation saying "dropped pin" 回答1: 1) Instantiate a UILongPressGestureRecognizer and add it to the MKMapView . 2) When the selector gets called after the user has a long press, call the addAnnotation method in MKMapView

How to Create a Choropleth or Bubble Map of UK in R [closed]

怎甘沉沦 提交于 2019-12-31 07:41:42
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I have been trying to build a Choropleth / Bubble map of UK for my own shiny dashboard project. My dashboard is a student information management system and the map is supposed to show students come from which regions (zip codes or cities is also fine). Unfortunately, most packages

Removing the Great Lakes from US county-level maps in R

二次信任 提交于 2019-12-31 02:25:15
问题 I am using R to draw US map at county level. I downloaded the shapefile for US from GADM. The county-level shape file is "gadm36_USA_2.shp". I then used the code below to draw map: library(sf) library(tidyverse) us2 <- st_read("<Path>\\gadm36_USA_2.shp") mainland2 <- ggplot(data = us2) + geom_sf(aes(fill = NAME_2), size = 0.4, color = "black") + coord_sf(crs = st_crs(2163), xlim = c(-2500000, 2500000), ylim = c(-2300000, 730000)) + guides(fill = F) The Great Lakes region (shown by red arrows)

KMLViewer Apple's example not working

旧巷老猫 提交于 2019-12-31 02:14:10
问题 I've been searching for quite sometime an answer to my problem with no success. So here it goes... KMLViewer, Apple's example is not working in some cases. After executing the README steps, i've tried to build up a route between Lisboa, Portugal and Porto, Portugal. And here the strangest thing happens. The annotations are built correctly, although the overlay (MKPolyline) does not, it only draws part of the route and it starts drawing in the middle of an "annotation". What am i missing ? You

Map tap event / mouse down event in windows phone 8?

女生的网名这么多〃 提交于 2019-12-31 01:57:08
问题 I am using the windows phone emulator. I wrote a very simple program: draw a marker on the map when the user tap the map once. Then I used map_tap event, and get the tapped location as follows, private void map_Tap(object sender, System.Windows.Input.GestureEventArgs e) { Point p = e.GetPosition(null); GeoCoordinate s = map.ConvertViewportPointToGeoCoordinate(p); Ellipse myCircle = new Ellipse(); myCircle.Fill = new SolidColorBrush(Colors.Blue); myCircle.Height = 20; myCircle.Width = 20;

GDAL工具之gdal2tiles

本小妞迷上赌 提交于 2019-12-30 11:52:06
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> gdal2tiles Generates directory with TMS tiles, KMLs and simple web viewers. 使用 TMS tiles、 KMLs 和简单的 web 查看器生成目录。 Synopsis 大纲 gdal2tiles . py [ - p profile] [ - r resampling] [ - s srs] [ - z zoom] [ - e] [ - a nodata] [ - v] [ - q] [ - h] [ - k] [ - n] [ - u url] [ - w webviewer] [ - t title] [ - c copyright] [ -- processes = NB_PROCESSES] [ - g googlekey] [ - b bingkey] input_file [output_dir] Description 描述 This utility generates a directory with small tiles and metadata, following the OSGeo Tile Map Service Specification. Simple web pages with viewers

Get type of terrain by coordinate

三世轮回 提交于 2019-12-30 10:37:27
问题 I'm looking for a solution to be able determine landscape type by a given coordinate, for example check if current position is water/forest/town/road and so on. I found google.maps.MapTypeStyleElementType object specification in the Google Maps specification, but not sure if it could help me or not. Probably, there are some another Maps API with such functioality? Or maybe I should refer to the different types of offline maps? 回答1: Nope, the link you send is just for styling the proper