maps

D3js: Automatic labels placement to avoid overlaps? (force repulsion)

你说的曾经没有我的故事 提交于 2019-12-17 05:37:30
问题 How to apply force repulsion on map's labels so they find their right places automatically ? Bostock' "Let's Make a Map" Mike Bostock's Let's Make a Map (screenshot below). By default, labels are put at the point's coordinates and polygons/multipolygons's path.centroid(d) + a simple left or right align, so they frequently enter in conflict. Handmade label placements One improvement I met requires to add an human made IF fixes, and to add as many as needed, such : .attr("dy", function(d){ if(d

Android - SupportMapFragment with GoogleMaps API 2.0 giving IllegalArgumentException

淺唱寂寞╮ 提交于 2019-12-17 04:27:16
问题 I am trying to use the latest Map API 2.0 provided for Android. I am using the Support Library as I want to support Android 2.2. Following is my code: Main Activity class public class MainActivity extends FragmentActivity { public FragmentManager fManager ; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); fManager = getSupportFragmentManager(); Button showMapButton = (Button) findViewById(R.id

Google Maps API - Getting closest points to zipcode

我的梦境 提交于 2019-12-17 02:38:16
问题 I'm in the process of adding a map to a website using Google Maps API v3 and javascript. I have a list of addresses and have successfully plotted them on the map. When the user types in a zip code, the map re-centers on their location showing the markers closest to that point. Now, I need to create a list view of the closest 3 or 5 locations to their zip code with links for driving direction. I'm stuck...and open for suggestions. 回答1: The usual solution is to use the google.maps.geometry

What is the ideal data type to use when storing latitude / longitude in a MySQL database?

守給你的承諾、 提交于 2019-12-16 19:50:03
问题 Bearing in mind that I'll be performing calculations on lat / long pairs, what datatype is best suited for use with a MySQL database? 回答1: Use MySQL's spatial extensions with GIS. 回答2: Google provides a start to finish PHP/MySQL solution for an example "Store Locator" application with Google Maps. In this example, they store the lat/lng values as "Float" with a length of "10,6" http://code.google.com/apis/maps/articles/phpsqlsearch.html 回答3: Basically it depends on the precision you need for

Google Map 谷歌地图

痞子三分冷 提交于 2019-12-16 14:41:27
<script> var map; function initMap() { var position = new google.maps.LatLng(1.539187, 103.647115), map = new google.maps.Map(document.getElementById('map'), { center: position, zoom: 15, styles: [去网站弄] }); var marker = new google.maps.Marker({ position: position, map: map, animation: google.maps.Animation.DROP, // BOUNCE, DROP, lo, no icon: 'http://www.zoominn.com.my/i/ModuleMap_icon.png' }); marker.addListener('click', function () { var ttc = document.getElementById('mapContent').cloneNode(true); var infoWindow = new google.maps.InfoWindow; infoWindow.setPosition(position); infoWindow

关于Result Maps collection already contains value for XXX值错误的问题

﹥>﹥吖頭↗ 提交于 2019-12-14 04:13:05
从这里我们可以看到问题的原因 这句话是说从以前的映射程序分析的XML片段已经包含com.ssm.dao.DepartmentMapper.Base_Column_List的值 简单的说,就是值重复了,有两个或两个以上相同的id造成了冲突,虚拟机无法正确运行程序。 一般我们使用mybatis的逆向工程生成的时候,可能多生成了几次,造成配置文件内容重复 现在图中说的是这个com.ssm.dao.DepartmentMapper.Base_Column_List重复了。 重复的值为Base_Column_List,那好我们复制这个Base_Column_List来到我们的mapper配置文件下 Ctrl+F查询这个id,然后把多余的删除就OK了 来源: CSDN 作者: 其实我是坏蛋 链接: https://blog.csdn.net/weixin_44241065/article/details/103497676

Using a Web Browser with a button and text box linked across 2 forms?

眉间皱痕 提交于 2019-12-14 03:33:30
问题 I have written a piece of a code which takes the postcode from my textbox then searches it within Bing for the user, at the moment all of it is on Form1 and works as it should, I'm looking to improve on the idea by allowing the user to press a button on Form1 then the web browser appearing in Form2. So far my attempts to figure this out have failed and was wondering if anyone had any ideas. I have attached a copy of my code which all works within in one Form Public Class Form1 Dim Automate As

Xcode google map navigation

前提是你 提交于 2019-12-14 02:40:25
问题 I currently have an application which will drop pins onto various points of interest on a map, all done programmatically on the iPhone. What I am aiming to get done now is to allow a user to navigate to that location and get turn by turn directions by calling up the built in navigation tools on the iPhone. Is there anyway that I can do this? I've scoured the developer center and searched both google and here and couldn't find anything about this. 回答1: You're not allowed to use google

Creating interactive SVG maps for a web portal

假如想象 提交于 2019-12-14 02:14:53
问题 I'm creating a web portal with maps in SVG format and set in the HTML code using <object> tag in order to preserve the possibility of interactivity. My main problem is how to create and support an interactive SVG format in the browser? As far as I have researched there are several options: SMIL animation directly in SVG, CSS animation, JavaScript libraries. It seems to me that this last option has the most potential. There are many libraries (Snap.svg, svg.js, Velocity.js, d3.js, jVectorMap

OpenLayers - how do I draw a multipolygon?

主宰稳场 提交于 2019-12-14 01:55:57
问题 I don't is this the right way to do this, but OpenLayers draws only the last polygon from array of polygons. Here is my code: for (...) { var pointList = []; var polygonList = []; for (...) { var newPoint = new OpenLayers.Geometry.Point(..X,...Y); pointList.push(newPoint); } var linearRing = new OpenLayers.Geometry.LinearRing(pointList); var polygons = new OpenLayers.Geometry.Polygon([linearRing]); polygonList.push(polygons); } var style_polygon2 = { strokeColor: "#05fbff", strokeOpacity: 1,