GeoView : Solved the crosshair centering with filter.
svn: r14358
This commit is contained in:
parent
86aed42805
commit
fdca317437
@ -176,7 +176,7 @@ _JAVASCRIPT = '''<script>
|
|||||||
gmarkers[i].openBubble();
|
gmarkers[i].openBubble();
|
||||||
}
|
}
|
||||||
function addcross() {
|
function addcross() {
|
||||||
Mapstraction.prototype.addCrosshairs=function(Height,Width,Cross)
|
Mapstraction.prototype.addCrosshairs=function(Cross)
|
||||||
{
|
{
|
||||||
var map=this.maps[this.api];
|
var map=this.maps[this.api];
|
||||||
var container=map.getContainer();
|
var container=map.getContainer();
|
||||||
@ -1272,10 +1272,7 @@ class GeoView(HtmlView):
|
|||||||
cpath = urlparse.urlunsplit(('file', '',
|
cpath = urlparse.urlunsplit(('file', '',
|
||||||
URL_SEP.join(fpath.split(os.sep)),
|
URL_SEP.join(fpath.split(os.sep)),
|
||||||
'', ''))
|
'', ''))
|
||||||
self.mapview.write("mapstraction.addCrosshairs(%d,%d,'%s');" % (
|
self.mapview.write("mapstraction.addCrosshairs('%s');" % cpath )
|
||||||
( self.height - self.header_size + ( 22 * 2 ) ),
|
|
||||||
self.width,
|
|
||||||
cpath ))
|
|
||||||
|
|
||||||
def _create_needed_javascript(self):
|
def _create_needed_javascript(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user