google-maps-markers

Change markers position base on Realtime Firebase lat and lang values

会有一股神秘感。 提交于 2019-12-11 17:19:10
问题 I seek to change the position of markers in google maps with the value of the real-time database I try to mMap.clear to but it's not the right solution because if I have 100 markers and change position of 1 marker the 100 is clear and reposition for make 1 marker change myRef.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { mMap.clear(); for (DataSnapshot ds : dataSnapshot.getChildren()) { Double lang = ds.child("lang").getValue

Fancybox iframe from Google Map V3 marker click

ε祈祈猫儿з 提交于 2019-12-11 16:45:09
问题 I have a Google Map (v3) that I am placing several markers into, and want to be able to click on the markers and pull up a Fancybox iFrame. I can't figure out how to pull the URL from the marker into Fancybox. I can see the Fancybox firing - the popup window appears breifly and then the link is pulled up as a new page over top of the current page. Here is a snippet of the relevant code: var sites = [ ['Mount Evans', 39.58108, -105.63535, 4, 'www.myurl-1.com'], ['Irving Homestead', 40.315939,

How can user add multiple marker on google maps flutter

徘徊边缘 提交于 2019-12-11 16:42:59
问题 How can the user add multiple markers when user long press on the map. in this code, I've done single map. when user long press on the map it will automatically add one marker but I don't know how I can add multiple markers on the map. I tried lots of codes but I am not getting the proper result. hope you understand the question. your small help can make my day. Thanks in advance. Here is the code I've tried :) import 'package:flutter/material.dart'; import 'package:geocoder/geocoder.dart';

How to add marker on google map with two locations?

↘锁芯ラ 提交于 2019-12-11 16:36:48
问题 I would like to add markers on google map with two locations, that are clickable. When I click on the button it should change the map marker with the location. <script> var map; function initialize() { map = new google.maps.Map(document.getElementById('map-canvas'), { center: new google.maps.LatLng(52.302516, 16.414546), //Setting Initial Position zoom: 14, }); var marker = new google.maps.Marker({ position: newLocation(), map: map, title: 'AGM-CORP', icon: 'img/agm-marker.png' }); } function

Use Custom INFOWINDOW with MySQL

纵饮孤独 提交于 2019-12-11 15:55:28
问题 I have a map where i display markers that are stored in a db (MySQL),each marker have different fields with it (for example: name, email, addres, etc), since "MarkerOptions" only let me use ".tittle",".snippet"some of the fields that i want to attach are left out, i know now that i have to use a custom infowindow to show all the fields that i want to. How can i do this? My code: Main: ArrayList<HashMap<String, String>> location = null; String url = "http://appserver.eco.mx/movil/getLanLong

How to filter an array in my state so it only shows map markers based on my user input - React

早过忘川 提交于 2019-12-11 14:23:44
问题 I'm very new to React and web development, so hopefully this makes sense. So I'm building an App that uses Google Maps api and React to show markers of places that I fetch from Foursquare. I generate an array of places from Foursquare (Limited to 5 places that I want to keep static) and placed it in the state of my app so I can pass the data to both a List sidebar and my Map to generate markers. I have also created a Filter search bar that I want to use to filter the List AND the Map Markers

Google Maps API V3 change Marker Option

浪尽此生 提交于 2019-12-11 13:51:02
问题 marker = new google.maps.Marker({ icon: image, position: new google.maps.LatLng(locations[i][1], locations[i][2]), flat: true, optimized: false, map: map, visible: true, customInfo: locations[i][0] }); I have the above to build my Marker in my Google Map but when the marker is clicked, the map zooms to the location and I'd like to make the marker non clickable. I have tried the following with no success google.maps.event.addListener(marker, 'click', function() { map.setZoom(17); map.setCenter

GMaps APIv3 InfoWindow for markers in loop for() is always the same

不羁的心 提交于 2019-12-11 13:23:26
问题 I know the topic has already been discussed many times, but I can't resolve my problem. I'd like to display some markers on my map, with a click event on each of them. Each click event should open an infoWindow with some data. Here is what I wrote ; this code runs without any error in the console, all the markers are correctly displayed, but the infowindow displayed on click is always the same for all... //Global variable var info = new google.maps.InfoWindow(); //... some other functions

Can you programatically draw pins (Markers) by distance on a Custom Google Map route

本小妞迷上赌 提交于 2019-12-11 13:09:08
问题 When going to the Google website and signin in you can click on the “Maps” option from the toolbar menu at the top of the page. Click on the “My Places” button and choose “Create Map.” There you can select to trace a route, for example, this map: https://maps.google.com/maps/ms?msid=204898944445262337567.0004d03638beb43c93029&msa=0&ll=6.235122,-75.536343&spn=0.003088,0.004823 There's some know way that via JS (other languages are also welcome) , i could put a Pin (Marker) let say, 50 mts from

How to display text when tap on marker in google maps android

给你一囗甜甜゛ 提交于 2019-12-11 11:22:25
问题 I want to display like this. https://lh6.ggpht.com/DOvS0NiHGyGC9Vn7JvkwznRBZ7I65j3zwpNAqLkP5y083ju7JQbwWi4NAXQLp5Wsavmn=h900 When google map marker gets tap, text will display below. It can be drag up and down. I don't get how it has been done. public class MapsActivity extends FragmentActivity { Googlemap gm; gm = ((SupportMapFragment) (getSupportFragmentManager() .findFragmentById(R.id.map))).getMap(); gm.setMapType(GoogleMap.MAP_TYPE_NORMAL); gm.setOnInfoWindowClickListener(this);