Search the web
Sign In
New User? Sign Up
yws-maps-ajax · | Yahoo! Maps Ajax API
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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
how can i show a custom marker image when using GeoRSS   Message List  
Reply | Forward Message #233 of 257 |
I'm wondering how i can show custom markers (just change the default icon
really) on my Yahoo Map (Ajax) when using GeoRSS. I have the following code but
i cannot get the icon to show:

<script type="text/javascript" language="JavaScript">
function StartYMap() {
var map = new YMap(document.getElementById('mapDiv'));
map.setMapType(YAHOO_MAP_SAT);
map.addTypeControl();
map.addPanControl();
map.addZoomLong();

function doStart(eventObj) {
var defaultEventObject = eventObj;
}
function doEnd(eventObj) {
var defaultEventObject = eventObj;
map.smoothMoveByXY(new YCoordPoint(10,50));
}

YEvent.Capture(map,EventsList.onStartGeoRSS, function(eventObj) {
doStart(eventObj); });
YEvent.Capture(map,EventsList.onEndGeoRSS, function(eventObj) {
doEnd(eventObj); });

map.addOverlay(new YGeoRSS('http://www.surfacewatch.com[*rss_geo_link*]'));

function createCustomMarkerImage(){
var myImage = new YImage();
myImage.src =
'http://www.surfacewatch.com/assets/images/map_icon.png';
myImage.size = new YSize(20,20);
myImage.offsetSmartWindow = new YCoordPoint(0,0);
return myImage;
}

}
window.onload = StartYMap;
</script>




Sat Jun 20, 2009 10:05 am

surfacewatch
Offline Offline
Send Email Send Email

Forward
Message #233 of 257 |
Expand Messages Author Sort by Date

I'm wondering how i can show custom markers (just change the default icon really) on my Yahoo Map (Ajax) when using GeoRSS. I have the following code but i...
surfacewatch
Offline Send Email
Jun 20, 2009
10:05 am
Advanced

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