maps

Different color to noise marker using here maps

孤人 提交于 2020-01-17 12:21:10
问题 Is it possible to apply different color to different noise markers while clustering using here maps api? There's a theming option available, but that applies to all markers. I would like to set a specific color to specific point based on certain conditions. 回答1: This is certainly possible using a custom theme. The definition of the H.clustering.DataPoint object includes a data() method which can hold arbitrary data. When you prepare your dataset you can add it as shown: var dataPoints = [];

Image Pixel X,Y coordinates to Lat/Lon

南笙酒味 提交于 2020-01-17 07:03:54
问题 I have a unique problem re: projections and obtaining lat/lon coordinates from an image. I have an 800 x 600 pixel image of the U.S., and I know the projection (Polar Sterographic with a -75 lon center of origin), lower left lat/lon, and upper right lat/lon of the image. I've put the image into a webpage and I am able to mouse over the image and obtain the x and y "pixel" coordinates from the image in the div tag. Is there a simple formula to help obtain the lat and lon of the x/y pixel

Image Pixel X,Y coordinates to Lat/Lon

梦想的初衷 提交于 2020-01-17 07:03:29
问题 I have a unique problem re: projections and obtaining lat/lon coordinates from an image. I have an 800 x 600 pixel image of the U.S., and I know the projection (Polar Sterographic with a -75 lon center of origin), lower left lat/lon, and upper right lat/lon of the image. I've put the image into a webpage and I am able to mouse over the image and obtain the x and y "pixel" coordinates from the image in the div tag. Is there a simple formula to help obtain the lat and lon of the x/y pixel

How do I get a pin on Google Maps using location from a variable? [closed]

╄→尐↘猪︶ㄣ 提交于 2020-01-17 05:18:10
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I want to place the pins on my Google Maps map with a variable containing the location, when I make one like this, my pin works. var imageDriver =

Bing maps with VB

元气小坏坏 提交于 2020-01-17 03:37:58
问题 Hi I have written a piece of code which allows the program to take a postcode from a text box then type it into Bing for the user. This works perfectly fine when I use www.bing.com but if I was to use http://www.bing.com/maps/?mkt=en-gb so that the postcode is type directly into Bing maps then it crashes. I have included a copy of my code which works with the standard Bing search but would like some advice on allowing the program to search directly into Bing maps without the program crashing.

javascript google map empty gray background when zoomed to zero

為{幸葍}努か 提交于 2020-01-16 08:41:15
问题 Am using google map javascript for my hybrid webview app. When i zoom out map till 0 , it will show gray area while map tiles will be on center of the screen. Is there any way i can fix this to avoid the gray area? I have tried using map tile image for background but is noticeable when you move map. I have also tried setting minZoom to 2 , but still if i scroll map the gray area will be visible. Or is it possible to prevent scrolling map area when zoom is '2`? MinZoom default MinZoom 2 I

New Google API Key “Google Maps API v3” doesn't work for Google Places API?

人盡茶涼 提交于 2020-01-14 06:53:27
问题 I am working with the Google Places API (https://developers.google.com/places/documentation/search), and have generated a new Google API Key with 'Any IP Allowed'. When I try to get the results of the API service URLs below, I am getting a REQUEST DENIED error. https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&sensor=false&key=AIzaSyA3vtFM8AMlIO853ra82KzryBs752VIWts https://maps.googleapis.com/maps/api/place/search/xml?key

Leaflet geofence on multiple circles … detecting marker inside / outside

余生颓废 提交于 2020-01-14 05:51:06
问题 I have some code that detects when the market is dragged inside and outside of a circle. This works great but I was just wondering how I can have one market and multiple circles detected instead of just one. Here is the current code: var mymap = L.map('mapid', { center: [50.895763, -1.150556], zoom: 16 }); L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoic3RldmVuc2F0Y2giLCJhIjoiY2p5eDR6MWgzMHRvbjNocnJkN2d2MjRwaSJ9.wd0OtBUQQfUtNxdduQA3lg', { maxZoom: 18

google maps marker array?

。_饼干妹妹 提交于 2020-01-14 05:25:09
问题 Hi guys and girls if any :)) this piece of code creates a null pointer exception I would like to put a couple of markers in MO LAT = Double.parseDouble(PartA); LNG = Double.parseDouble(PartB); LatLng Standort = new LatLng(LAT, LNG); MO[y] = mMap.addMarker(new MarkerOptions() .position(Standort) .icon(BitmapDescriptorFactory.fromResource(R.drawable.kreis))); builder.include(MO[y].getPosition()); Array type expected - found com.google.android.gms.maps.model.maker Definition private static

Using Swift, how can I determine if a coordinates ordered pair (x,y) is within the bounds of n ordered pairs?

橙三吉。 提交于 2020-01-14 04:41:07
问题 Is there a math function of some kind in Swift (or maybe multiple functions that work together), where I can create sets of ordered pair coordinates, and then pass in a single ordered pair coordinate to get a bool true/false of whether it's within the bounds of the set? I'm not the greatest at math, so I'm hoping someone who is (and understands how to solve this problem in Swift) can help me out here. Example data: I have a coordinate where someone is located in lat-long. Let's say (28