fixings paths for map assets

This commit is contained in:
rolux 2011-04-25 14:37:16 +02:00
parent 351652e513
commit 3b5e04b61e
4 changed files with 4 additions and 4 deletions

View file

@ -48,7 +48,7 @@ Ox.ListMap = function(options, self) {
return $('<img>') return $('<img>')
.attr({ .attr({
// fixme: not the right place to do these // fixme: not the right place to do these
src: Ox.PATH + 'svg/ox.map/' + (value || 'NTHH') + '.' + (value == 'RE' ? 'png' : 'svg') src: Ox.PATH + 'svg/Ox.Geo/' + (value || 'NTHH') + '.' + (value == 'RE' ? 'png' : 'svg')
}) })
.load(function() { .load(function() {
$(this).css({ $(this).css({

View file

@ -46,7 +46,7 @@ Ox.MapImage = function(options, self) {
Ox.forEach(self.markers, function(markers, k) { Ox.forEach(self.markers, function(markers, k) {
if (markers.length) { if (markers.length) {
self.src += '&markers=icon:' + 'http://dev.pan.do:8000' + self.src += '&markers=icon:' + 'http://dev.pan.do:8000' +
Ox.PATH + 'png/ox.map/marker' + Ox.PATH + 'png/Ox.UI/marker' +
Ox.toTitleCase(self.options['markerColor' + Ox.toTitleCase(k)]) + Ox.toTitleCase(self.options['markerColor' + Ox.toTitleCase(k)]) +
'.png|' + markers.join('|') '.png|' + markers.join('|')
} }

View file

@ -77,7 +77,7 @@ Ox.MapMarker = function(options) {
cursor: that.place.editing ? 'move' : 'pointer', cursor: that.place.editing ? 'move' : 'pointer',
draggable: that.place.editing, draggable: that.place.editing,
icon: new google.maps.MarkerImage( icon: new google.maps.MarkerImage(
Ox.PATH + 'png/ox.map/marker' + Ox.PATH + 'png/Ox.UI/marker' +
(that.place.id[0] == '_' ? 'Result' : '') + (that.place.id[0] == '_' ? 'Result' : '') +
(that.place.editing ? 'Editing' : ( (that.place.editing ? 'Editing' : (
that.place.selected ? 'Selected' : '' that.place.selected ? 'Selected' : ''

View file

@ -17,7 +17,7 @@ Ox.MapRectangleMarker = function(options, self) {
cursor: that.position + '-resize', cursor: that.position + '-resize',
draggable: true, draggable: true,
icon: new google.maps.MarkerImage( icon: new google.maps.MarkerImage(
Ox.PATH + 'png/ox.map/markerResize.png', Ox.PATH + 'png/Ox.UI/markerResize.png',
new google.maps.Size(16, 16), new google.maps.Size(16, 16),
new google.maps.Point(0, 0), new google.maps.Point(0, 0),
new google.maps.Point(8, 8) new google.maps.Point(8, 8)