marker

Zoom function Google maps

你离开我真会死。 提交于 2019-12-13 06:17:21
问题 I've created a button inside my info window that needs to pan to the marker and then zoom in but I can't get it to work. Below is my Zoom function function Zoom(){ google.maps.event.addListener(marker, 'click', function() { map.panTo(marker.position); map.setZoom(18); }); and this the function that creates the marker and fills the info window with the html below. function createMarker(latlng, name, woonplaats, prijs, perceelop, woonop, address) { var html ="<a href="+address+">"+"<b>"+name+"<

Draggable, on Google AppMaker

别来无恙 提交于 2019-12-13 02:48:25
问题 I want a little guidance, because I haven't found the explanation I need yet. I'm developing a website on Google App Maker, and I want to use on Google Map Widget a Draggable Marker. All the info I have found, is like for an external website including HTML and JavaScript libraries. The error is shown when I type: var marker = new google.maps.Marker({ position: latlon, map: map, draggable: true, title:"Drag me!" }); "Uncaught TypeError: google.maps.Marker is not a constructor at var marker =

how to set marker one by one in google map api v3?

a 夏天 提交于 2019-12-13 01:24:32
问题 I am doing a google map which will read a set of coordinates and put the marker on the map one by one. Below is my idea: function A{ for loop( set marker call setTimeout('A',2seconds) ) } my idea is to set a marker and use setTimeout to wait 2 seconds and then set the next marker. However, it doesn't work. it show all the markers at the same time and repeat to renew all markers. How can i achieve my goal? Thanks for your help!!!!!!!!!!!!!!! Here is my code: function marker(){ var marker; var

React native dynamically pop and show map markers from server

删除回忆录丶 提交于 2019-12-12 22:25:28
问题 I need to get marker positions on map position change from the server and reflect this new marker positions on the map. If I put some markers in the state it shows the markers however it doesn't show any marker dynamically. I don't get any error or warnings on the console. App.js import React, { Component } from 'react'; import { Text, View, StyleSheet, Switch, Alert, AppRegistry } from 'react-native'; import MapView from 'react-native-maps'; import Fetchdata from './Fetchdata.js'; const

Change marker bounds for android google maps

…衆ロ難τιáo~ 提交于 2019-12-12 20:00:06
问题 So I have a customoverlay which extend itemizedoverlay in order to place a marker on the map. My problem is that I'd like to adjust the marker so the drawable's bounds are different from the boundCenterBottm and boundCenter values (in my case I'd like to have something like boundLeftBottom if it existed). How do I achieve this? The reason I want to achieve this is because I have a drawable which points down to the left bottom corner. I've searched the web dry, any help is greatly appreciated.

Location change and put Marker on Click in openstreetmap

ぐ巨炮叔叔 提交于 2019-12-12 15:31:58
问题 I am new to Open Street Map map. I want to put the marker on map where i Tapped. I want to delete previous marker also. Please help me. Thanks in advance. Here is my code Overlay touchOverlay = new Overlay(this) { ItemizedIconOverlay<OverlayItem> anotherItemizedIconOverlay = null; @Override protected void draw(Canvas arg0, MapView arg1, boolean arg2) { } @Override public boolean onSingleTapConfirmed(final MotionEvent e, final MapView mapView) { Projection proj = mapView.getProjection();

Common event handler for all Google Maps v3 markers

走远了吗. 提交于 2019-12-12 14:39:36
问题 I have a map that shows 500 markers and they are redrawn when the user scrolls the map. Each of the markers is quite complicated - they're numbered and have click, mouseover and mouseout (to animate them) events attached. This causes some performance issues because removing and adding these markers takes a lot of time. I've been wondering if I could attach a single click, mouseover and mouseout event handlers for the whole map and catch the event that bubbles up from the markers there. Is

Creating SVG markers programmatically with Javascript

≯℡__Kan透↙ 提交于 2019-12-12 10:49:26
问题 Is it possible to create a marker in SVG using Javascript and then apply it to a newly created line? If so, please can you tell me what is wrong with the code below. I would expect the red and green lines to both have an arrow head but in both Chrome and Firefox 3.6 only the green line does. <?php header('Content-type: application/xhtml+xml'); echo '<?xml version="1.0" encoding="utf-8" ?>'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1

can't see google marker

给你一囗甜甜゛ 提交于 2019-12-12 05:38:58
问题 Can someone tell me why I can't see the marker on this map? <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } </style> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?keykey=AIzaSyBG47z_ebM8I6Ic2-rXL8QiPN5CHCOBwco&sensor=true"></script> <script type="text/javascript"> function initialize() { var mapOptions = { center: new

How to move map under a marker? android

非 Y 不嫁゛ 提交于 2019-12-12 05:25:02
问题 I want to implement the drag effect of a map. When we drag the map the marker should show the current position or latitude and longitude. Its done in Uber application see below: In this marker shows the current location as the map is dragged. How can I achieve this??? ChooseFromMapActivity public class ChooseFromMapActivity extends AppCompatActivity implements GoogleMap.OnCameraChangeListener { TextView textShowAddress; private GoogleMap mMap; LatLng latLng; double latitude = 17.385044;