marker

angularjs google maps - markers with window - infowindow not showing

梦想与她 提交于 2020-01-22 19:46:27
问题 Trying to get a app using angular-google-maps with: - multiple markers via the markers directive - a single infowindow via the window directive I've been through the API and multiple closed issues / questions on the git-hub site but just can't get it working... :-/ jsfiddle For simplicity, I'm declaring the markers manually (and they're displaying correctly): $scope.markers = [ { id: 0, coords: { latitude: 37.7749295, longitude: -122.4194155 }, data: 'restaurant' }, { id: 1, coords: {

How to add direction on tracking path for google maps

瘦欲@ 提交于 2020-01-22 04:32:08
问题 I am showing the tracking on map with marker points and line connecting them. The problem is that i want to show the direction of travel on the links; so I am not getting how to show the direction on the line between the marker points. Is there any way to accomplish this task. 回答1: Showing the direction on the polyline can be accomplished with arrows. There are some predefined paths that the google maps api3 provides. See this section of the documentation - SYMBOLS ON POLYLINE, that can be

Rotate marker as per user direction on Google Maps V2 Android

假如想象 提交于 2020-01-17 10:18:19
问题 I want to rotate marker as per bearing or sensor value received from Accelerometer to show the user where actually he is moving. I have set marker icon and flat value to true but its not working as required. mCurrentLocationMarker.position(new LatLng( LocationUtils.sLatitude, LocationUtils.sLongitude)); mCurrentLocationMarker.icon(icon); mCurrentLocationMarker.flat(true); mCurrentLocationMarker.rotation(LocationUtils.sBearing); if (currentMarker != null) { currentMarker.setPosition(new LatLng

Show marker address (street-Address) with clicking in swift

回眸只為那壹抹淺笑 提交于 2020-01-17 07:20:23
问题 I have a latitude and longitude location of marker in google maps that I want to convert to the location name String in Swift. What is the best way to do this? i want to show markers' location address and i don't know how to do it . here is my code that i used to add marker and get latitude and longitude: func mapView(mapView: GMSMapView, didLongPressAtCoordinate coordinate: CLLocationCoordinate2D) { if counterMarker < 2 { counterMarker += 1 let marker = GMSMarker(position: coordinate) marker

Show marker address (street-Address) with clicking in swift

断了今生、忘了曾经 提交于 2020-01-17 07:19:08
问题 I have a latitude and longitude location of marker in google maps that I want to convert to the location name String in Swift. What is the best way to do this? i want to show markers' location address and i don't know how to do it . here is my code that i used to add marker and get latitude and longitude: func mapView(mapView: GMSMapView, didLongPressAtCoordinate coordinate: CLLocationCoordinate2D) { if counterMarker < 2 { counterMarker += 1 let marker = GMSMarker(position: coordinate) marker

Custom marker view with own interactions

末鹿安然 提交于 2020-01-15 03:51:14
问题 I am trying to create my own problem view. I found the following tutorial and all works fine. But is there any possibility to add an own DoubleClickListener or something like that? I want to react on user actions, which are executed on the list. Thanks for any advices. 回答1: Here is what I would do: by overriding public void createPartControl(final Composite parent) you will have the parent composite. By calling parent.getChildren() you can iterate over the available Controls.

Getting the pixel co-ordinates of a Google map marker

安稳与你 提交于 2020-01-14 22:48:45
问题 Is it possible to determine the pixel co-ordinates of a given marker, taking into account current zoom level and visible area of the map? 回答1: Current (v3): map.getProjection().fromLatLngToPoint(marker.position); https://developers.google.com/maps/documentation/javascript/3.exp/reference#Projection Old (v2): The method fromLatLngToContainerPixel following should give you what you're after, assuming markerPoint is your marker, and zoomLevel your current zoom: map.fromLatLngToContainerPixel

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

How to make markers in Leaflet blinking

与世无争的帅哥 提交于 2020-01-14 02:19:08
问题 Is there a simple way to make a marker in Leaflet map blinking ? I mean animated blinking - something like a loop of transition from opacity 1.0 to opacity 0.5 in 1 second and then reverse, end of loop. 回答1: When you add a Marker you are able to specify an Icon - the options for which include a className. You can use this className option to animate the marker's icon via CSS. var map = L.map('map').setView([51.505, -0.09], 13); L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',

How to make markers in Leaflet blinking

半城伤御伤魂 提交于 2020-01-14 02:19:06
问题 Is there a simple way to make a marker in Leaflet map blinking ? I mean animated blinking - something like a loop of transition from opacity 1.0 to opacity 0.5 in 1 second and then reverse, end of loop. 回答1: When you add a Marker you are able to specify an Icon - the options for which include a className. You can use this className option to animate the marker's icon via CSS. var map = L.map('map').setView([51.505, -0.09], 13); L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',