infowindow

AngularJS ng-include inside of Google Maps InfoWindow?

丶灬走出姿态 提交于 2019-11-27 12:12:26
I'm trying to include a template file views/infowindow.html as the content of my InfoWindow from service I wrote to initiate the google maps api: for ( var count = locations.length, i = 0; i < count; i++ ) { var latLng = locations[i], marker = new google.maps.Marker({ … }), infowindow = new google.maps.InfoWindow(); google.maps.event.addListener( marker, 'click', (function( marker , latLng ){ return function(){ var content = '<div ng-include src="\'infowindow.html\'"></div>'; infowindow.setContent( content ); infowindow.open( Map , marker ); }//return fn() })( marker , latLng ) );//addListener

How do I remove default markers?

北慕城南 提交于 2019-11-27 11:32:33
I'm using Google Map API V3 and I noticed there are a lot of markers which are here even though I don't need them. For examples, some schools or other places with InfoWindows appearing when clicking on them. Is there any way I can remove them or is it just not possible? The only markers that should show up on the map are those you add yourself. Care to share your code or a page where we can see this happening? Update: ok, these aren't really 'markers' in the normal sense of the word, they're just points of interest, which happen to behave like markers in that you can click on them and see

Add an Image from url into custom InfoWindow google maps v2

自闭症网瘾萝莉.ら 提交于 2019-11-27 07:07:46
I'm am working in an android app. The user make a search at google maps for restaurants. In google map display markers for all of his neighbor's restaurant. If he tap at a marker it show up a custom InfoWindow. My problem is that I can't load the image that return form Google places. Im getting right the url of image but I can't show it at Window. InfoWindow <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:background="

Google Maps API Multiple Markers with Infowindows

若如初见. 提交于 2019-11-27 05:58:11
I am trying to add multiple markers each with its own infowindow that comes up when clicked on. I am having trouble with getting the infowindows coming up, when I try it either shows up only one marker without an infowindow. Thanks, let me know if you need some more information <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?key=AIzaSyB1tbIAqN0XqcgTR1-FxYoVTVq6Is6lD98

Trigger event with infoWindow or InfoBox on click Google Map API V3

荒凉一梦 提交于 2019-11-27 04:32:43
I want to know how to trigger an event when I click on an infoWindow using Google Maps API v3. In this example, when I click on a marker, an info window shows up with a unique message, based on which marker I clicked. I want to also be able to click the info window and have an alert show up that says "You clicked on the infowindow for ( __ fill in blank location _ ) I found some examples using Google Maps API v2 and jQuery, but not with just plain old Google Maps API v3. <!doctype html> <html lang="en"> <head> <title>jQuery mobile with Google maps - Google maps jQuery plugin</title> <link rel=

Android Maps Utils Clustering show InfoWindow

我们两清 提交于 2019-11-27 04:17:14
I am planning to use the google maps marker clustering available in the utils library, but the google example app only shows marker clusters without any infoWindow. I am wondering now, am I not able to show a InfoWindow? I want the InfoWindow to be displayed on the marker like with a normal google maps marker, not on the cluster. The code I have: (From the google example) public class BigClusteringDemoActivity extends FragmentActivity { private ClusterManager<MyItem> mClusterManager; private GoogleMap mMap; private void readItems() { InputStream inputStream = getResources().openRawResource(R

Opening InfoWindow automatically when adding marker Google Maps v2 Android

一曲冷凌霜 提交于 2019-11-27 04:11:28
Is there a way to open the infowindow automatically when we add a marker? Using this code to add the marker but infowindow only opens when clicking the marker: myMap.addMarker(new MarkerOptions() .position(latLng) .title("Title") .snippet("Snippet") .icon(BitmapDescriptorFactory .fromResource(R.drawable.marker))); According to the documents of Google Maps for Android V2 : An info window allows you to display information to the user when they tap on a marker on a map. By default, an info window is displayed when a user taps on a marker if the marker has a title set. Only one info window is

Dynamic contents in Maps V2 InfoWindow

丶灬走出姿态 提交于 2019-11-27 00:51:56
I want to show an InfoWindow on markers in a Maps V2 fragment. Thing is, I want to show BitMaps that are dynamically loaded from the web with Universal Image Downloader . This is my InfoWindowAdapter: class MyInfoWindowAdapter implements InfoWindowAdapter { private final View v; MyInfoWindowAdapter() { v = getLayoutInflater().inflate(R.layout.infowindow_map, null); } @Override public View getInfoContents(Marker marker) { Item i = items.get(marker.getId()); TextView tv1 = (TextView) v.findViewById(R.id.textView1); ImageView iv = (ImageView) v.findViewById(R.id.imageView1); tv1.setText(i

Disable point-of-interest information window using Google Maps API v3

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 00:41:42
问题 I have a custom map with an information bubble and custom markers. When I zoom into points of interest such as parks and universities appear and when I click an information window opens. How do I disable the info window? My code is as follows: var geocoder; var map; var infoBubble; var dropdown = ""; var gmarkers = []; var hostel_icon = new google.maps.MarkerImage('/resources/hostel_blue_icon.png', new google.maps.Size(28,32), new google.maps.Point(0,0), new google.maps.Point(14,32)); var bar

Multiple markers and infowindows on Google Maps (using MySQL)

血红的双手。 提交于 2019-11-26 23:44:09
问题 There are another four if statements which do the same thing for other categories. <?php if (isset($_POST['one'])) { $query = "SELECT * FROM beerstable WHERE category LIKE \"%Lager%\""; $result = mysql_query($query); if (!$result) { die('Invalid query: ' . mysql_error()); } while ($row = mysql_fetch_assoc($result)) { $lat = $row['lat']; $lng = $row['lng']; $markername = $row['name']; $link = $row['link']; $photo = $row['photo']; ?> var infowindow = new google.maps.InfoWindow({ content: '<h1><