Search the web
Sign In
New User? Sign Up
ydn-dotnet · CLOSED: Yahoo! .NET Developer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Unable to custom markers   Message List  
Reply | Forward Message #117 of 263 |
<html>
<head>
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script>
<style type="text/css">
#map{
height: 75%;
width: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
function StartYMap() {
var map = new YMap(document.getElementById('map'));
var cPT = new YGeoPoint(41.85,-87.65);
map.addZoomLong();
map.addTypeControl();
map.disableKeyControls();
map.drawZoomAndCenter(cPT,5);

var setupMarker = function(p,d) {
var m = new YMarker(p);
m.addAutoExpand(d);
return m;
};

// process returned traffic e object
var trafficF = function(e) {
var _p = [];
if (e.Data) {
for (var a in e.Data.ITEMS) {
var l = e.Data.ITEMS[a];
// YLog.print(l);
if (l.TITLE) {
var p = new YGeoPoint(l.LATITUDE,l.LONGITUDE);
_p.push(p);
var m = setupMarker(p,l.TITLE);
map.addOverlay(m);
}
}
}
//args: array of points, color, thickness, alpha
var pl = new YPolyline(_p,'blue',4,0.5);
map.addOverlay(pl);

};

//args: point, radius
map.searchTraffic(cPT,2);

// listen for completion of traffic info search
YEvent.Capture(map,EventsList.onEndTrafficSearch,trafficF);

}
window.onload = StartYMap
</script>
</body>
</html>




Thu Jan 10, 2008 12:38 am

poojathakker...
Offline Offline
Send Email Send Email

Forward
Message #117 of 263 |
Expand Messages Author Sort by Date

<html> <head> <script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=YahooDemo"></script> <style type="text/css"> #map{ height:...
poojathakker_ind
poojathakker...
Offline Send Email
Jan 10, 2008
12:38 am

Hi All I am working with asp.net C# . I am reading several addresses, latitude and longitudes from database in IDatareader and javasctipt dynamically. I am...
poojathakker_ind
poojathakker...
Offline Send Email
Jan 10, 2008
12:42 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help