marker

Marker drag not working in iframe under Chrome and Firefox

╄→гoц情女王★ 提交于 2019-12-11 08:09:07
问题 I'm working on embedding the google map, into a page, containing multiple iframes. It can happen, that I load 2 maps, into 2 different iframes at the same time. This is the reason why the Map API loaded only once, in the main document's head section: <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM&v=3&sensor=false" type="text/javascript"></script> For loading the map inside the iframe, I wrote the following code, which runs inside the iframe:

Leaflet: Icon marker does not appear in the right point of the map

情到浓时终转凉″ 提交于 2019-12-11 08:08:22
问题 I am placing a custom icon marker in a leaflet map. The first time the map is loaded, the icon marker does not appear in the right given coordenates. It's "moved", then, if you zoom in until the minimum the icon appers in the right point. I was wondering what's wrong. var map = L.map('map').setView([-36.60664, -72.10342], 4); map.options.minZoom = 4; map.options.maxZoom = 18; L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright"

How to handle click event component of custom marker in android

点点圈 提交于 2019-12-11 08:05:42
问题 I have used xml layout to make marker .In that layout there is five buttons 'A','B','C','D','E'. I follow this link.I want to show different toast message click on different button like if user click on button 'A' then message will be 'you have clicked on button A'. .How to do that? Please help. Thanks in advance. 回答1: Marker a,b; GoogleMap mMap; mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)) .getMap(); a= mMap.addMarker(new MarkerOptions() .position(sc) .title("A")

Adding Markers on Google maps v2 Android

风流意气都作罢 提交于 2019-12-11 03:04:40
问题 I followed the tutorial in https://developers.google.com/maps/documentation/android/start and i managed to load a map into my app.Now i want to add some markers into my app using latitudes and longitudes.How do i do it? I tried something but did not work. The code i tried is below. This how i was going to do it.But i get a null point exception.What is the reason for that? GoogleMap googleMap = null; MapFragment fm = (MapFragment) (activity.getFragmentManager()) .findFragmentById(R.id.map);

Android - Google Maps Touch and Drag Marker

六眼飞鱼酱① 提交于 2019-12-11 02:08:58
问题 How would I go through moving a marker on a Map Activity without having to long click and hold that marker until it receives focus? I just want to touch and drag, but it takes around 1-2 secs before it receives focus and fires drag event. here's my code: mMap = googleMap; mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID); mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() { @Override public void onMapClick(LatLng latLng) { Marker marker = mMap.addMarker(new MarkerOptions() .position

Eclipse Add marker for linked resources

大兔子大兔子 提交于 2019-12-10 19:46:31
问题 I know that markers can be added only for IResource(s), could they be added for linked resources ? I've got the linked resource name from .project, using org.eclipse.core.internal.Project.internalGetDescription() and getLinks() . But it seems that something is missing, Eclipse is complaining about the fact that the resource does not exist. I'm creating the resource using Workspace.newResource([PATH]) , where the PATH is an IPath built correctly using the linked resource name from .project and

Google maps delete all markers and then create new

杀马特。学长 韩版系。学妹 提交于 2019-12-10 19:24:29
问题 I'm working to create a map, that by default loads the address and shows tha marker and place address in search box, that works fine. But I need to add the click event that will delete all markers first and then put the marker. As so far I was develop script that do all I need. But when user clicks on map, the searchbox gets place address but the old marker doesn't delete and new marker doesn't appears in the click location. Here my working example code: https://jsfiddle.net/ehsLLg26/ Here my

iOS: Dynamic Marker Info Window

我的梦境 提交于 2019-12-10 16:54:29
问题 I'm trying to dynamically load an image into an infowindow. The issue is that SDWebImage doesn't ever complete. However, once I click the marker again the image shows and complete is called but never on the first time. My log for "run" shows on the first time so I know the code is being called but complete never shows on the first run unless the image is cached and in that case it will show on the second marker tap. Side note: I'm storing the link to the image in snippet since I don't have

Externally defined markers don't appear in SVG

谁说胖子不能爱 提交于 2019-12-10 13:17:04
问题 I'm trying to make the markers unified for a bunch of SVG images. My problem is that I cannot make external references in marker definitions work. It may be connected to question How to reference external svg file in svg correctly? but a link is still missing. I made a little example to demonstrate my problem: b.svg (which is referenced): <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"> <defs> <circle id="b" r="6" stroke="black" fill="green" />

Google Maps for Flutter - Get new position of marker after dragging

别等时光非礼了梦想. 提交于 2019-12-10 12:18:47
问题 I want to create a location picker in flutter using google Google Maps for Flutter and it's marker. It's possible to create a dragable marker by creating a marker with dragable option set to true. Using the following code segment. Widget _buildMap(BuildContext context) { return GoogleMap( options: GoogleMapOptions( cameraPosition: CameraPosition( target: LatLng(7.2906, 80.6337), zoom: 7.0, ), compassEnabled: true, ), onMapCreated: (controller) { _mapController = controller; controller