maps

ERROR: Google Maps API error: MissingKeyMapError

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The following JavaScript error suddenly appeared: Google Maps API error: Google Maps API error: MissingKeyMapError 回答1: Yes. Now Google wants an API key to authenticate users to access their APIs` . You can get the API key from the following link. Go through the link and you need to enter a project and so on. But it is easy. Hassle free. https://developers.google.com/maps/documentation/javascript/get-api-key Once you get the API key change the previous to Now your google map is in action. In case if you are wondering to get the longitude and

Ensure that the “Google Maps Android API v2” is enabled. I am getting this error when I try to Implement Google Maps

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working on google maps and I am getting this error. I had done the following things: Got My sha1 fingerprint. Registered my project and got my project key. I don't know to how to get Google Maps Android API v2 enable because all the links I have tried are old and Google had changed it's site design. Please help me. I already have wasted a lot of time on this. My Logcat: 回答1: From error it is clear that You did not enable google map api for android. To enable, Login google developer console Select Library option from left side panel. Now

Google Maps Api Drawing a Circle

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi i've a problem with Google maps api, i'am using the library Drawing and don't know if this is normal but when i am using Circle Drawing at the moment to start to draw this don't appear in the map only appear when the circle is completed, but the other controller like polygon or rectangle it's appear in the momento to start to draw, i did copy the example that google maps api have in their page and happen the same.. Some solution.. Thanks for the help. This is code from Google maps API <!DOCTYPE html> <html> <head> <title>Drawing tools<

How do HEALPix FITS files of CMB maps translate into ndarrays? What are the coordinates?

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Healpy (the HEALPix tools developed in Python) to read and write full-sky CMB maps. I am confused as to how the coordinates of pixels on a sky map translates into entries of a numpy ndarray. How does one HEALPix pixel in a FITS file translate into an ndarray entry? For example, let's say I have a generated CMB map, Nside=64, lmax=64, using the default RING scheme. The total number of pixels is given by Npix=12*Nside**2. So, for my example, that is 49152 total number of pixels. The FITS file I have is in the format 1 column by 48

No view found for id 0x7f0a001a ( mypackage name) for fragment Maps{435e2398 #2 id=0x7f0a001a}

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to open an mapsfragment from another fragement which has a list of items. When I do that I get: No view found for id 0x7f0a001a ( com . ylg . main : id / map ) for fragment Maps { 435e2398 #2 id=0x7f0a001a} what could be wrong here. Maps.class: public class Maps extends Fragment implements GoogleMap . OnMyLocationChangeListener { @Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { if ( rootView != null ) { ViewGroup parent = ( ViewGroup ) rootView .

Draggable AND clickable pushpin in javascript bing map

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Does anyone get the way to put draggable pushpins through the bing api using javascript? Its is even possible to have that functionality through the api (javascript)? 回答1: The answer is there! http://www.bingmapsportal.com/ISDK/AjaxV7#Pushpins13 var pushpinOptions = { icon : 'poi_custom.png' , draggable : true }; var pushpin = new Microsoft . Maps . Pushpin ( map . getCenter (), pushpinOptions ); pushpindragend = Microsoft . Maps . Events . addHandler ( pushpin , 'dragend' , enddragDetails ); map . entities . push ( pushpin ); 回答2:

update marker position in Google Maps in IOS app

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to update the marker position on the drawn route till it reaches its destination.Now here is the code for accessing server: NSURL * url = [ NSURL URLWithString :[ NSString stringWithFormat :@ "https://maps.googleapis.com/maps/api/directions/json?origin=%f,%f&destination=-32.90,151.80&waypoints=-33.30,151.50&alternatives=true" , marker . position . latitude , marker . position . longitude ]]; After this I am just updating the position of marker overtime I calculate the new position.The question arises how I am getting the new position

android camera position, google maps

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I have the above code which animates the camera to a certain location. Is there anyway that I could move the camera position to a different position once it has finished the animation from the first location ? I am trying an if statement but it doesn't work. for instance: CameraPosition cameraPosition = new CameraPosition.Builder() .target(1stlocation) .zoom(12) .bearing(300) .tilt(30) .build(); map.addMarker(new MarkerOptions() .icon(BitmapDescriptorFactory.fromResource(R.drawable.green)) .position(1st Location) .flat(true) .rotation(245

Disable click behavior of POI markers in Google Maps JS API

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: As of Google Maps API v3.6, maps now include "points of interest", which are gray markers embedded into a map. When the user clicks on this icon, an InfoWindow appears with information about that business (or park, hospital, etc.) These can be turned off by setting the Styling. (See "Style Array Example") https://code.google.com/apis/maps/documentation/javascript/styling.html Once they are turned off, the icons, names, and shaded regions (for parks and hospitals) go away. Before Google Maps API v3.6, there were no icons; only the

Google Maps polygon show/hide toggle with checkbox

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to do a simple polygon on/off toggle using a checkbox input, but I was unable to make the following code works. I have searched on google and found some solutions but none of them have worked to me. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <style>html, body, #map-canvas{height: 100%; margin: 0px; padding: 0px; height: 590px;} </style> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> <script> function toggleLayer