maps

Google Maps Api 3: Uncaught TypeError: Cannot call method 'setCenter' of undefined

梦想的初衷 提交于 2020-01-02 16:56:37
问题 I have been trying to get my geocoder working this morning for the following URL but can't seem to figure out what I am doing wrong: http://www.dlplaw.com/media/map.html When clicking encode, the geocoder is doing it's job and returning the correct Lat / Long coordinates but it gets hung up on setCenter. Uncaught TypeError: Cannot call method 'setCenter' of undefined I tried to follow the Google example here and can't understand why this won't work: http://code.google.com/apis/maps

How to draw lots of markers on a map

若如初见. 提交于 2020-01-02 08:58:13
问题 I'm trying to draw on a map using markers. The problem I'm having is when I try to add lots of them, then I can't get it to run. To illustrate my problem, let's say I want to draw a square made of 900 smaller squares (30x30). By the way, I do need those squares, not just one big square I'm trying to add the markers to an itemizedoverlay, then drawing it. the code is below. Any suggestion how I could do that? Thank you very much!! public class MainActivity extends MapActivity { MapView mapView

When should I use geom_map?

烂漫一生 提交于 2020-01-02 07:31:14
问题 I'm making a choropleth map with added points in ggplot. So, following the last example of the geom_map help docs I came up with this: require(ggplot2) require(maps) set.seed(47) county_map <- map_data("county", "washington") names(county_map)[5:6] <- c("state", "id") countyData <- data.frame(id = unique(county_map$id), value = rnorm(39)) map1 <- ggplot(countyData, aes(map_id = id)) + geom_map(aes(fill = value), map = county_map, colour = "black") + coord_map() + expand_limits(x = county_map

Android: align_left aligns to the center

狂风中的少年 提交于 2020-01-02 06:14:50
问题 I have a fragment that contains a google map: <com.google.android.gms.maps.MapView android:id="@+id/mapview" android:layout_width="match_parent" android:layout_height="match_parent" map:cameraZoom="13" map:mapType="normal" map:uiZoomControls="false" map:uiRotateGestures="true" map:uiScrollGestures="true" map:uiZoomGestures="true" map:uiTiltGestures="false" /> the map takes up the entire screen and has mylocation enabled: map.setMyLocationEnabled(true); The following code should align the

iterative closest point library

送分小仙女□ 提交于 2020-01-01 18:57:50
问题 is there any c++/c open source implementation? i got two point clouds and would like to match them.. any ideas? 回答1: Give LibICP a shot, although I personally have not used it so far. http://www.cvlibs.net/software/libicp.html EDIT: I tried it by myself, not a great experience -- the library is short of documentation and example code. Also, I didn't receive much help from the authors too. 回答2: I wrote a article about accelerated line search on ddj.com some time ago. I dont exactly understand

three.js emissive material maps

独自空忆成欢 提交于 2020-01-01 12:05:13
问题 I'm currently experimenting a bit in three.js, and I'd like to use an emissive map. I've tried just loading a texture into the emissive property of a phong material, but it doesn't work like that, unfortunately. Here's my code: var params = { emissive: THREE.ImageUtils.loadTexture( emissive ), shininess: shininess, map: THREE.ImageUtils.loadTexture( map ), normalMap: THREE.ImageUtils.loadTexture( normalMap ), normalScale: new THREE.Vector2(0,-1), envMap: this.reflectionCube, combine: THREE

three.js emissive material maps

陌路散爱 提交于 2020-01-01 12:05:03
问题 I'm currently experimenting a bit in three.js, and I'd like to use an emissive map. I've tried just loading a texture into the emissive property of a phong material, but it doesn't work like that, unfortunately. Here's my code: var params = { emissive: THREE.ImageUtils.loadTexture( emissive ), shininess: shininess, map: THREE.ImageUtils.loadTexture( map ), normalMap: THREE.ImageUtils.loadTexture( normalMap ), normalScale: new THREE.Vector2(0,-1), envMap: this.reflectionCube, combine: THREE

Get height of a building from a maps API

筅森魡賤 提交于 2020-01-01 09:07:05
问题 It's any public maps API (google, microsoft, openstreet...) that returns the height of the roof for certain points? Imagine: you request some address and the API returns the coordinates, some information and the height of the building, if available. 回答1: OpenStreetMap has a height tag and various other building related tags like building:levels from which you could estimate the height. However note that currently most buildings lack those tags as they aren't widely in use so far. Still you

Maps API, storing data, how to without violating terms? [closed]

删除回忆录丶 提交于 2020-01-01 04:58:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . In Google and Yahoo Maps API, I read in th terms of service: YOU SHALL NOT: "store or allow end users to store map imagery, map data or geocoded location information from the Yahoo! Maps APIs for any future use;" My problem and scope of my project is to build a real estate website. The user who posts an ad for

android.view.WindowLeaked: Activity has leaked window android.widget.ZoomButtonsController$Container that was originally added here

自闭症网瘾萝莉.ら 提交于 2020-01-01 04:50:08
问题 Working with maps i have an activity which is launched when no connection is available and uses offline maps (MapQuest). The activity runs fine, map is shown, and all overlays, markers and so on. When the user clicks on one of the markers info window another activity is launched and at this moment i get a bunch of red error messages in the log, though the app does not crash. These messages (the init is in the title) seem to talk about the ZoomButtons and touch events. As for ZoomButtons or