google-maps-markers

Adding a marker to GMaps (google maps)

﹥>﹥吖頭↗ 提交于 2019-12-06 11:38:15
问题 I'm trying to use this tool: http://software.stadtwerk.org/google_maps_colorizr/ to add colour to my google map, here is my example: http://jsfiddle.net/xUUxn/851/ The colour works fine, but now I can't seem to add any markers to it, I've tried putting this example code in: map.addMarker({ lat: -12.043333, lng: -77.028333, title: 'Lima', infoWindow: { content: '<p>HTML Content</p>' } }); But it doesn't seem to work, I'm not entirely sure where to put it or even if the references are correct.

Access the drawable resource of MyLocation blue dot in Maps

让人想犯罪 __ 提交于 2019-12-06 10:01:40
问题 I would like to get the same texture as the circle that indicates your position and bearing (blue) on the map in order to add other circles (in red) with the same texture and behaviour . What I have: I have access to all the params concerning the red point : LatLng, Bearing ... I used a map.addCircle to get the result displayed below. map.addCircle(new CircleOptions() .center(position1) .fillColor(Color.RED) .strokeColor(Color.WHITE) .radius(1.2) .strokeWidth(1 / 4)); Needs: I need the circle

Non-ASCII title for android map marker

♀尐吖头ヾ 提交于 2019-12-06 09:09:15
问题 I would like to be able to add a marker with a title that has only non-ASCII characters: marker = map.addMarker( new MarkerOptions() .title("אני") .position(latlng) ); Unfortunately the tile doesn't show up, only an empty info window. First I thought that there is a problem with the Hebrew characters in general, but they seem to be fine, because if there's ASCII text in the BEGINNING of the title, then it works: .title("me אני") However it doesn't when the Hebrew is in the beginning: .title(

In Google Maps getBoundingClientRect gives Unspecified Error in IE

蓝咒 提交于 2019-12-06 09:08:07
问题 Relating to question in: Unspecified Error from Google Maps API on IE8 In function function Mp(a,b){ .. } the following line of code triggers an error var e=a.getBoundingClientRect(); To replicate this error Make a Google Map page (make sure it is tall enough that you've spare space to scroll the page, don't make the map full-screen) Place a Marker Open the app in IE ( I tested in 10) in debug mode When page loads, click on a marker such that it shows the info-window i.e. the pop-over Try

custom google map add place card

耗尽温柔 提交于 2019-12-06 08:54:53
问题 i have created custom google map using php. it shows marker, location and info window. it works fine without any issue. i want to add place card in it. check below screenshot. How can i display Place card on my custom map. i tried following code to display custom location. <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script> <script> var saveWidget; function initialize() { var myLatlng = new google.maps.new google.maps.LatLng(-34.397, 150.644); var mapOptions

Placing an embedded google map marker with Selenium

巧了我就是萌 提交于 2019-12-06 07:46:19
问题 I have an asp.net website which as part of a wizard uses an embedded google map to select a location by clicking on the map to place a marker. How do I automate this with Selenium? In particular I've tried: ClickAt DoubleClickAt MouseDownAt MouseUpAt In all cases passing the map div id as the locator and "100,100" as the coordinate. I don't care where on the map the marker is placed, as long as I can place that marker. 回答1: The command: <tr> <td>clickAt</td> <td>//div[@id='gmap']/div/div[1]<

Show google map marker depending on what zoomlevel you're on

試著忘記壹切 提交于 2019-12-06 07:35:04
问题 I'm wondering if it's possible to set markers to be visible in a chosen zoom level for the Google Map API v3. I figured it's possible in the v2 of the API using the "Marker Manager" but can't find a way for the latest API. Example: Marker-1 -> (max_zoom:10, min_zoom:5) //will on be shown within zoom level 5-10 Marker-2 -> (max_zoom:15, min_zoom:10) //will on be shown within zoom level 10-15 As I'm developing an jQuery-plugin I only want to use the original API without add-ons. Thanks in

android.view.InflateException: Binary XML file line #30: Error inflating class <unknown>

こ雲淡風輕ζ 提交于 2019-12-06 07:28:00
问题 I am running a application which opens up with a map, with a marker on it. On clicking on the marker I am trying to open a dialog with some fields in it. This is my code for marker click, public boolean onMarkerClick(Marker arg0) { Log.d("", "here"); View view = getLayoutInflater().inflate(R.layout.dialogview, null); view.setBackgroundColor(Color.LTGRAY); edtDate = (TextView) view.findViewById(R.id.edtDate); edtTime = (TextView) view.findViewById(R.id.edtTime); Dialog dialog = new Dialog(this

Remove marker in google_maps_flutter

天涯浪子 提交于 2019-12-06 07:21:10
I have added Google Maps for Flutter i know how to add a marker as it is given clearly in there examples MarkerOptions _options = new MarkerOptions( position: LatLng( driver_lat, driver_lng, ), infoWindowText: const InfoWindowText('An interesting location', '*')); Marker marker = new Marker('1', _options); //Adding Marker googleMapController.addMarker(_options); And i am removing the marker like below googleMapController.removeMarker(marker); for adding the marker it is taking MarkerOptions object as a parameter but for removing the marker it is asking for Marker object as parameter and my

Google Map Api Marker not showing with Reactjs

烈酒焚心 提交于 2019-12-06 05:46:48
I am trying to display a google map with a marker. I am using React.js. The map displays in the correct location, but the marker does not show and I get multiple 'object is not extensible' error in the browser console The code looks like this /** @jsx React.DOM */ var Map = React.createClass({ initialize: function() { var lat = parseFloat(this.props.lat); var lng = parseFloat(this.props.lon); var myPosition = new google.maps.LatLng(lat,lng); var mapOptions = { center: myPosition, zoom: 8 }; var map = new google.maps.Map(this.getDOMNode(), mapOptions); var marker = new google.maps.Marker(