- Screen name: murf_melbourne
murf_melbourne's Profile
6 Posts
8 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- Hello All,I am trying to work out how to give a map marker a label using this module, can anybody please enlighten me?I have tried overriding addMarker as per the description here but it does not play ball.Thanks.P.S. my original code for the marker, which works, is:
function loadGeo(){
var myLatlng = new google.maps.LatLng(-37,145);
$('#map_canvas').gmap({ 'center':myLatlng, 'zoom': 16,
'streetViewControl': false, 'callback': function() {
$('#map_canvas').gmap('addMarker', {'position': myLatlng, 'label':'14'}, function(map, marker) {
$('#map_canvas').gmap('addInfoWindow', { 'position':marker.getPosition(),
'content': 'Item 14' }, function(iw) {
iw.open(map, marker);
});
});
}});
}
and my over ride code in jquery.ui.map.extensions.js is :
( function($) {
$.extend($.ui.gmap.prototype, {
// We override the addMarker method
addMarker: function(markerOptions, callback) {
var marker = new google.maps.MarkerWithLabel( jQuery.extend({'map':
this.getMap(), 'bounds': false}, markerOptions) );
…..
}
});
} (jQuery) );
The error I get in the javascript console is
Uncaught TypeError: undefined is not a function
- 23-Aug-2011 11:04 PM
- Forum: jQuery Mobile
Hi all,Not sure if this is the appropriate place to post this but I am sure some of you may be using phonegap with JQM.I have no problems building my JQM app for iPhone using phonegap, but when i try it on Android,all the images and javascript and css files dont seem to be linked in.It is probably a differing path issue, but I can't for the life of me work out what it should be instead of the usual"_js/functions.js" and "_images/blah.png" etc.Any insight will be most welcome thankyou!- 18-Aug-2011 11:39 PM
- Forum: jQuery Mobile
Hello all, this problem seems to have only been introduced recently because I am sure it was working at some stage.When I go into the list, which has a nested list, then back up, then back in, the page with the nested list has disappeared from the DOMhere is some test code, feel free to try it- Hello,I am trying to use google maps per the examples at http://code.google.com/p/jquery-ui-map/.The error I receive on the console is:XMLHttpRequest cannot load http://jquery-ui-map.googlecode.com/svn/trunk/demos/json.json?category=activity. Origin http://murfswebserver.net is not allowed by Access-Control-Allow-Origin.I am using an appropriate key generated on the google maps api website.I also have this in my apache config:Header set Access-Control-Allow-Origin *Any suggestions most welcome!
- Hi All,I am only getting an empty horizontal line instead of my persistent footer when I drill down into a nested list.The surrounding div tag is there, just no data between the tag.example:rendered footer in nested list:<div data-role="footer" data-id="myfooter" class="ui-bar-a ui-footer fade" role="contentinfo" style="top: -35px; "></div>Any suggestions most welcome, thanks.
- 13-Jul-2011 09:00 PM
- Forum: jQuery Mobile
Hello All,I have a web application I am developing with jquery mobile, and when I upgraded my jquery-mobile.js and .css from jquery.mobile-1.0a4.1 to jquery.mobile-1.0b1, the content appears really small on an iPhone 4.Any suggestions most welcome,Murf.- «Prev
- Next »
Moderate user : murf_melbourne
© 2012 jQuery Foundation
Sponsored by
and others.


