Javascript - Google Map V3.0 Using Custom Marker?

Dec 6, 2010

I am doing a project on Integration of google map v3.0. I finished the integration I am happy with the Output. The Problem is I was trying to change the RED Marker to Custom Marker. I have saved a marker in my solution. And was trying with this piece of code.The Program is running but i am not getting any marker on the map(either red marker or custom marker). I tried in many blogs but couldnot find a solution.Out.

var icon = new google.maps.MarkerImage("icon55.png");
var marker = new google.maps.Marker({
position: location,
map: map,
icon: icon
});

View 1 Replies


Similar Messages:

MVC :: Using Javascript To Put A Marker On A Google Map?

Dec 1, 2010

I have this kind of problem: I am using javascript to put a marker on a google map and I try to get the latitude and longtiude from this mark to my hidden fields in a view page.

my master page code is:

[Code]....

my view page code is:

[Code]....

And in javaScript the alert messages show good values:

[Code]....

[Code]....

View 2 Replies

Web Forms :: Plotting Multiple Marker In Google Map

Oct 27, 2013

I found a good tutorial from you about plotting multiple location using Google map.

[URL]..

I'm pretty new in using Visual Studio Web Express and I dont know how to import namespaces and on how to populate marker from SQL server. I have a project solution called GoogleMap and I have the HTML codes as my homepage but I don't know where should I put in those codes for VB.Net. I also have the database created.

View 1 Replies

Social Networking :: How To Make A Google Map Marker Draggable

May 7, 2015

Iam showing google marker baesd on location now whenever i need to change the position the marker has to be removed how to do it????

Can we make it draggable?

View 1 Replies

Social Networking :: How To Center Map As Per Marker Locations In Google Maps V3

May 2, 2013

I have wriiten the following code to avoid zoomout of the markers and to place the makers center to the map.

var bounds=new google.maps.LatLngBounds();map.fitBounds(bounds);map.setCenter(bounds.getCenter());

The above code is working correctly.But when i wrote setInterval function to drop the markers after a specific interval of time , the above piece of code is not working and the map is not getting displayed.This the code i have written

window.onload = function () {
var mapOptions = {
center: new google.maps.LatLng(markers[0].lat, markers[0].lng),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var infoWindow = new google.maps.InfoWindow();

[Code] ....

View 1 Replies

Social Networking :: How To Customize (change) Marker In Google Maps V3

Nov 21, 2013

[URL]

how to change icon marker on google maps to custom shape with label ?

like [URL] website.

View 1 Replies

Social Networking :: Display Marker In Google Map V3 When Address Is Clicked?

Jan 30, 2014

I have list of hotels which have different address  in each row  in datalist control and  there is a image button for view map in each row.On clicking that view map in dtatalist_item command event i want to pass that particular address and display into that map in next page.

View 1 Replies

Social Networking :: How To Zoom Map When Marker Is Clicked In Google Maps V3

May 7, 2015

I am using the code below for google maps to show multiple markets and it works fine. but I am confused how to add the following...

If you click a marker and zoom it does not always stay in sync and you lose sight of the market...

View 1 Replies

Social Networking :: How To Change Marker Size In Google Maps V3

May 7, 2015

This my code but it is not showing difference How Would I change the size of the markers give me some syntaxs

var mapOptions1 = {
center: new google.maps.LatLng(-34.397, 150.644 ),
zoom: 5
};

[Code].....

View 1 Replies

AJAX :: Google Maps Marker Show Popup From Server Side?

Apr 21, 2010

I'm using google maps in my site with markers.

When a marker is clicked, I'd like to display a popup.

this is easy, my problem is that the popup needs to be updated from the database before and the popup has some links that should be inside an UpdatePanel to avoid refresh.

I can use the marker function to display a popup (with a given html) how to get the html with the updatepanel .

I thougt about using the ajax popup control but I don't know how to position it on the marker.

View 5 Replies

Social Networking :: Change Marker Icon Image In Google Maps V3

Oct 1, 2013

I see your article "Google maps v3 with multiple marker". I want to change the icon on that code. I want to use my custom icon instead of google red icon. I have tried using below code. but it's not working?

icon: { image: 'http://yava.ro/wp-content/plugins/responsive-maps-plugin/includes/icons/green.png',
iconsize: [50, 50], iconanchor: null, shadow: 'http://yava.ro/wp-content/plugins/responsive-maps-plugin/includes/icons/shadow.png', shadowsize: [50, 50], shadowanchor: null}

Code reference : [URL] ....

Also code does not work with HTML5 "".

View 1 Replies

Social Networking :: How To Change Color Of Marker Icon In Google Maps

May 7, 2015

I have to insert different characters in each marker.How can I? like the below link I want to insert in this below link they display markers with letters. for example they used 'blue' color for 'L' yellow for 'k' like that I want to write code give me syntax for writing like that.URL...

View 1 Replies

Social Networking :: Redirect To Another Page When Clicked On Marker In Google Maps V3

May 7, 2015

I have a database table with Lat, Long, City and Url colums

On aspx, i am using google v3 maps with markerCluster enabled to.

The problem i am having is the map loads fine and shows the clusters. when i click the cluster it zooms to the markers but then If I click a marker I want it to redirect to another URL - that corresponds to that marker in the SQL database - Url Columns....

All my code is below: 

<link href="Style/PlayMeStyle.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src = "https://maps.googleapis.com/maps/api/js?key=xxxxxxxxxxxxgEk&sensor=false">
</script>
<script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer_compiled.js"></script>
<script type="text/javascript">
function initialize() {

[Code] .....

View 1 Replies

Social Networking :: Display Google Maps V3 Marker On Button Click

Jan 22, 2014

I have a repeater to show the data and has another repeater for google map.My map will show 10 markers .Now i need to highlight the first marker when hovering the first result in the repeater and so on Here is my code...

<div id="dvMap">
</div>
<script type="text/javascript">

[Code].....

View 1 Replies

Data Controls :: Display (Add) Marker On Google Maps On GridView Row Click

May 7, 2015

I need to show infowindow for the markers when clicked on gridview row. I could get infowindow but its just taking rowindex and displaying as i found this solution from this website. i need to display with datakeynames of gridview.

I could able to get datakeyname value but unable to trigger map with infowindow.

$("#lstLocations td").live("mouseover", function () {
google.maps.event.trigger(google_markers[$(this).parent()[0].rowIndex - 1], 'click');
});
$("#lstLocations td").live("mouseover", function () {

[Code].....

View 1 Replies

Social Networking :: Google Maps V3 - Display Color InfoWindow On Marker Click

May 5, 2013

i have map and iwant to add multiple markers to map from sql database,and each marker has colorful infowindow that has few details and has link when it cklicked the infowindow will be large and contains tabs every tabs binding to sqlserver and in one tab we add image gallary.

View 1 Replies

Data Controls :: Display Marker On Google Maps When Address In GridView Row Is Clicked?

May 7, 2015

Am working on google maps. I am retrieving data from database and binding to gridview now when i click on select in gridview i need to show particular id marker along with infowindow using the coordinates(lat and lng) 

Table  contains: ID,Firstname, LastName, Lat, Lng, DOB,DOD

View 1 Replies

Social Networking :: Keep Multiple InfoWindows Open When Marker Is Clicked In Google Maps

May 7, 2015

I am using multiple maker in google maps but I have requied all marker infowindow is always open. How I can do it? my code for multiple marker is - 

window.onload = function () {
var mapOptions = {
center: new google.maps.LatLng(markers[0].lat, markers[0].lng),

[Code].....

View 1 Replies

Data Controls :: Display InfoWindow For Marker On Google Maps When Corresponding GridView Row Is Clicked

May 7, 2015

If all rows has lat and lng then below code is working fine. But my grid has no coordinates for some rows like for 20 rows there are only 2 rows has coordinates(lat and lng) in this case this code is not working. And i have paging if i go to next page for this its taking again previous 1st rowindex and showing infowindow on the map.

$("[Id*=GridView1] td").live("click", function () {
google.maps.event.trigger(google_markers[$(this).parent()[0].rowIndex - 1], 'click');
});
$("[Id*=GridView1] td").live("click", function () {
});

[Code] ....

View 1 Replies

Social Networking :: Delete (Remove) Marker On Google Maps When InfoWindow Close Button Clicked

May 7, 2015

When I click marker hes show a Description. reference by this Example : [URL] .... but I want add some features, when I click marker hes show a description and also one link/button(DELETE). When I click link/button then delete marker also delete from database record.

View 1 Replies

Javascript - Reverse Geocoding On Marker Click?

Jul 28, 2010

I have an embedded Google map with my web application in ASP.NET 3.5.I have implemented reverse geocoding (getting address from latitude and longitude) on Map click.Now, I need the same but on marker click.

View 2 Replies

Javascript - Google Map Dragging Like In Maps.google.com?

Aug 22, 2010

just want to add the effect of map momentum by the dragging of map as in maps.google.com has. currently on my map where i stop dragging the map stops there but in maps.google.com if you drag a mouse the map will not stop there it will continue the movement in the same direction for a second or few cordinates (i dont know basically), but I want the same thing on my google map. I am using GMap2.

View 1 Replies

Architecture :: How To Create Custom Api Like Google Chart

Jan 25, 2011

How to create a simple api for to display the information from my site. that ll be added to other website like how the google api is working in the same way i need to create for that how can i achieve this .send me the use full tutorial link.

View 1 Replies

Social Networking :: Customize And Style Google Custom Search Engine

Feb 3, 2013

I used below link to use google search engine in my page [URL]....

here google put default for textbox and button search engine Height and width 

I put code into div that I define in my page and I set height and width for div so I can change search engine textbox Width but it didn't change textbox Height

How I can change Height of search engine textbox

View 1 Replies

Web Forms :: Google Map API And Javascript GetElementById?

Mar 8, 2010

I'm trying to get the Google map API to work with ASP.NET. I got it working on an HTML page but it does not work on a ASP.NET master page/content page. The problem seems to be getElementById not finding a div assigned to an ID.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved