marker

plot a different marker for each place googlemap v2 android

邮差的信 提交于 2019-12-11 22:07:34
问题 I have managed to place a marker for each item in my database using their stored title and coordinates. I am now trying to change the content of each InfoWindow so that it shows information related to each place (other than the title and snippet)also each place have a different icon marker. how to give a custom icon and a different infowindow for each place? i create the different icons for marker. the information are loading in format json and the icon marker are also in my database.should i

Is there a way to get information out of a mapbox popup when clicked on?

独自空忆成欢 提交于 2019-12-11 20:08:19
问题 I currently have a mapbox app that displays a popup for each marker once clicked which is great. What I want however, is the information within the popup to be sent to a seperate div within the app, so the data is displayed at the bottom of the screen instead of within a popup on the map. So it looks something like the image below, but at the bottom of the page instead and with only the essential data such as name, description etc. The code below is what I am using to generate the markers. So

Android: change marker's size/color based on parameter

南楼画角 提交于 2019-12-11 19:22:05
问题 Currently I'm using google-map-API V2 for android google map,is there any way I can based on one variable parameter change the marker(pin) size/color of google map? 回答1: float valueBetween0and360 = 222.222; marker.setIcon(BitmapDescriptorFactory.defaultMarker(valueBetween0and360)); will change marker icon color. For size you will have to provide your own icons and use BitmapDescriptorFactory.fromResource. 来源: https://stackoverflow.com/questions/18822504/android-change-markers-size-color-based

Fill and Border color property of data point marker (scatter or line) Excel VBA

≡放荡痞女 提交于 2019-12-11 16:48:13
问题 I am writing some code to loop through each data point in a chart and change the color (fill/border) of the point marker if it is the wrong color. I don't want it to change if it is a compliant color (using a select case). Problem: Checking markerbackgroundcolor and markerforegroundcolor returns "-1" no matter what the color is until i manually change the color (right click marker and change fill from automatic to solid).Something to do with Automatic colors. Basic example in immediate window

R - Adding dots to map in tmap

别等时光非礼了梦想. 提交于 2019-12-11 16:43:16
问题 My map-making code generates a map based on census data and plots important points as a tm_dots() layer. What I'd like to be able to do is differentiate between the types of dots (e.g. if the location is "Informal" or "Commercial"). tm_shape(bristol) + tm_fill("population", palette = "YlOrRd", auto.palette.mapping = TRUE, title = "Bristol Population", breaks = c(0,5,10,15,20,25), colorNA = "darkgrey") + tm_borders("grey25",alpha = 0.7, lwd = 0.1) + tm_dots("n", size=0.1,col="green", shapeNA =

Nutiteq map freezing after adding a few lines and markers

霸气de小男生 提交于 2019-12-11 16:16:27
问题 im developing a traffic application and there is a few traffic lines and warning markers on the road. I draw traffic lines according to zoom level. For example, If zoom level is over 10, im removing all lines and redraw for new zoom level. Because lines overflow on the road. I have lines over 400 for every zoom level. So every zoom in/ zoom out action, i remove and redraw. After a while my map begins to freeze and moving very slowly. Is there any caching operation on background? Because im

How to add a marker with a specific class to a layer or layergroup?

人走茶凉 提交于 2019-12-11 13:01:56
问题 I have a couple of markers that have a css class with its names, for example: markerOne has .markerone as css class, and so on. Its possible to create a function to assign these markers to specific layers or groups? Something like var layerone = $(L.marker).hasClass("markerone")); and assign all markers with that class inside a layer? I want to do this so later I can toggle that layer on/off with addLayer and removeLayer. Function that I use to show the markers: function showResourcesByName

Creating draggable map like uber application

风流意气都作罢 提交于 2019-12-11 12:23:27
问题 I have followed one link which has the code to make map which we can drag and get the current location. Here is the link. How to Implement draggable map like uber android, Update with change location I have followed all the code still I am unable to get the result. The map we can drag but not showing the location on text view. ChooseFromMapLayout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http:/

Any simple way to clean all Markers, Polylines and other Overlays on Google Maps v3 API?

馋奶兔 提交于 2019-12-11 10:14:58
问题 I want to get a new map not using refush the webpage. thanks and has easy way to get all Overlays on the map? 回答1: In the v2 API, there was the clearOverlays() method as Gaby pointed out. However, this method is not present if the v3 API. If I remember correctly, this omission was intentional to keep the library lightweight. Therefore, with the v3 API, you have to keep a reference of your overlays, and then call setMap(null) on each overlay. 回答2: Look the google map api documentation And in

Google Maps MarkerWithLabel and custom Icon not working correctly [duplicate]

▼魔方 西西 提交于 2019-12-11 08:16:08
问题 This question already has answers here : Google Map API - multiple icons in wrong spot (2 answers) Closed 5 years ago . I have a basic google map on which I'm trying to add markers using the MarkerWithLabel extension. I have to load the coordinates from a json object, and on the label I have to put the sort order of the markers, which is also from the json. The problem is that the custom icon I load for the markers only works on the last one and I can't figure out why. They all position