[mapguide-users] RE: Event that captures mouse action

2010-04-07 Thread SriRam007

Hi,

Actually I want to enable and disable all these functionality depends upon
some conditions
sometimes i want and somtimes I dont.

According to u making layer non-selectable is done. One job is done but i am
stuck for the others.

I found one function function OnMouseWheel(event) which is inside
ajaxmappane.templ
I think i need to change there inside the templ file But i dont want to
change anything inside viewers file

is there any way to hijack this function and can i use that in my
application


thanks
-- 
View this message in context: 
http://n2.nabble.com/Event-that-captures-mouse-action-tp3939442p4863280.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Layer properties problem

2010-04-07 Thread padmini godavarthi

Hi,
iam doing zoom to feature (i mean if i select layername from dropdownlist
the layer properties have to appear in 2nd dropdownlist.when i select one of
layer property the propertyvalues have to display in 3rd
dropdownlist)partially i succeeded.but iam unable to get the selected value
of layer property.because iam new to php 
in .net i will write as dropdownlist.selecteditem(if i select featId then it
will come),But how to retrieve this value in php.
my code is as follows




?php

require_once '../utilityfunctions.php';
require_once '../JSON.php';
require_once 'classes/zoom.php';

$args = ($_SERVER['REQUEST_METHOD'] == POST) ? $_POST : $_GET;

$errorMsg = null;
$errorDetail = null;

try
{
MgInitializeWebTier($configFilePath);

$query = new Query($args);

$layerNames = $query-GetMapLayerNames();
}
catch (MgException $mge)
{
$errorMsg = $mge-GetMessage();
$errorDetail = $mge-GetDetails();
echo $errorMsg;
echo $errorDetail;
}
catch (Exception $e)
{
$errorMsg = $e-GetMessage();
echo $errorMsg;
}
?
html
head
titleQuery Features/title
link rel=stylesheet href=../styles/gt.css type=text/css
script language=javascript
src=../../viewerfiles/browserdetect.js/script
script language=javascript src=../json.js/script

script language=javascript
var READY_STATE_UNINITIALIZED   = 0;
var READY_STATE_LOADING = 1;
var READY_STATE_LOADED  = 2;
var READY_STATE_INTERACTIVE = 3;
var READY_STATE_COMPLETE= 4;

var NOT_BUSY_IMAGE = ../images/loader_inactive.gif;
var BUSY_IMAGE = ../images/loader_pulse.gif;

var session = '?= $args['SESSION'] ?';
var mapName = 'map';


var queryReqHandler = null;

var properties = null;
var propertyvalues=null;
var results;

function OnLayerChange()
{
var layerSelect = 
document.getElementById(layerSelect);
var propertySelect =
document.getElementById(propertySelect);
var valueSelect = 
document.getElementById(valueSelect);

reqParams = COMMAND=GETLAYERPROPERTIES;
reqParams += SESSION= + 
encodeURIComponent(session);
reqParams += MAPNAME= + 
encodeURIComponent(mapName);
reqParams += LAYERNAME= + 
encodeURIComponent(layerSelect.value);

if (msie)
reqHandler = new 
ActiveXObject(Microsoft.XMLHTTP);
else
reqHandler = new XMLHttpRequest();

reqHandler.open(POST, zoomcontroller.php, 
false);
   
reqHandler.setRequestHeader(Content-Type,application/x-www-form-urlencoded);

reqHandler.send(reqParams);
alert(reqParams);
properties = 
reqHandler.responseText.parseJSON();

propertySelect.options.length = 0;

for (var i = 0; i  properties.length; 
i++)
{
propertySelect.options[i] = new 
Option(properties[i].name, i, false,
false);

}
OnPropertyChange();
}
function OnPropertyChange()
{
var propertySelect = document.getElementById(propertySelect);
var valueSelect = document.getElementById(valueSelect);

if (propertySelect.selectedIndex  0)
{


   alert(propertySelect.value); [it comes as  the index value]



reqParams = COMMAND=GETLAYERPROPERTYVALUES;
reqParams += SESSION= + encodeURIComponent(session);
reqParams += MAPNAME= + encodeURIComponent(mapName);
reqParams += LAYERNAME= + 
encodeURIComponent(layerSelect.value);
reqParams += PROPNAME= + 
encodeURIComponent(FeatId);
alert(reqParams);
if (msie)
reqHandler = new ActiveXObject(Microsoft.XMLHTTP);
else
reqHandler = new XMLHttpRequest();

reqHandler.open(POST, zoomcontroller.php, false);
   

[mapguide-users] Re: IE refresh issue

2010-04-07 Thread Tom Chadwin

Anyone? This is a pretty serious issue, as it leads to total misalignment of
different map layers. I need to know if it is a problem at my end, and, if
so, if there is anything I can do about it.

So, again, can anyone else see this problem?

Tom
-- 
View this message in context: 
http://n2.nabble.com/IE-refresh-issue-tp4817709p4864043.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread Tom Chadwin

Instead of your:

alert(propertySelect.value); [it comes as  the index value] 

try:

alert(propertySelect[propertySelect.selectedIndex].value);

Does that fix it? This is a Javascript issue, not a PHP one.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4864089.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Modify mapdefinition in a layout

2010-04-07 Thread SriRam007

Hi euskalmap,

I m trying to get the xml format of Mapdefinition.

for pst_map and pst_weblayout parameter what u r passing 

pst_map = MapName??  (is it Sheboygan)

pst_weblayout = WebLayoutName??  (is it SheboyganAsp)

Here is my code 


public String MapName = Sheboygan;
public String WebLayoutName = SheboyganAsp;

protected void btnGetMapDefn_Click(object sender, EventArgs e)
{
Utility.InitializeWebTier(Request);
string NewMapDefinitionStr = Session: + Session[ID].ToString() +
// + MapName + .MapDefinition;
MgUserInformation userInfo = new
MgUserInformation(Session[ID].ToString());
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.Open(userInfo);
MgResourceService resourceService =
siteConnection.CreateService(MgServiceType.ResourceService) as
MgResourceService;

MgMap map = new MgMap();
map.Open(resourceService, MapName);

MgResourceIdentifier WebLayoutId = new
MgResourceIdentifier(WebLayoutName);//Error is showing Invalid repository
type.
MgByteReader byteReader =
resourceService.GetResourceContent(WebLayoutId);
XmlDocument doc = new XmlDocument();
string xmlLayoutDef = byteReader.ToString();
doc.LoadXml(xmlLayoutDef);
}

please give anyone some idea


thanks
-- 
View this message in context: 
http://n2.nabble.com/Modify-mapdefinition-in-a-layout-tp2462320p4864521.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread padmini godavarthi

Hi,
Thats what iam asking for php code
After the  layername dropdown list box there is some php code for setting
the selected dropdown list

select size=1 class=Ctrl id=layerSelect onChange=OnLayerChange()
style=width: 100% 
?php 
$selected = 'selected'; 
foreach($layerNames as $layerName = $layerLabel) 
 { 
option value=?= $layerName ? ?=$selected ? ?= $layerLabel
?/option 

?php 
$selected = ''; 
} 
? 
/select 
Is there any php code for setting layer properties also

iam unable to know how to set that value...
Please guide me..



-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4864388.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Viewer API GetLayer() and base layers

2010-04-07 Thread Tom Chadwin

I'm having difficulty getting this to work, and would appreciate any help on
how to go about achieveing this.

Our third-party base mapping is from multiple suppliers, and I need to
display different combinations of these suppliers' licence statements
according to which layers are currently visible. GetVisible(true,false)
would have enabled me to do this easily. How would I go about achieving this
if GetLayers(true,false) is broken? I am a beginner at AJAX, and am finding
difficulty in working out the best way to get my client-side and server-side
scripts to interact in the right order.

Can anyone help? Or can anyone fix the GetLayers(true,false) bug?

Thanks

Tom
-- 
View this message in context: 
http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4864062.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread Tom Chadwin

Perhaps view the source of the page, and post that here, just to make sure
the right values are populating the form select drop-downs.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4864331.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread Tom Chadwin

Is there a missing close PHP tag?:

select size=1 class=Ctrl id=layerSelect onChange=OnLayerChange()
style=width: 100% 
?php 
$selected = 'selected'; 
foreach($layerNames as $layerName = $layerLabel) 
 { 
? !-- Was this close tag missing? --
option value=?= $layerName ? ?=$selected ? ?= $layerLabel
?/option 

?php 
$selected = ''; 
} 
? 
/select 

-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4864810.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread Tom Chadwin

To get back to your original question, from what I can see, your code will
set every option as selected. But which item do you want to be selected?
That list is generated before any user interaction, so which option should
be selected? Once the user chooses one option, you can get at it via:

inputName.selectedIndex - this gives the numerical index of the item
selected

inputName[inputName.selectedIndex].value - this gives the value of the item
selected

I hope this answers your question.

Tom
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4865266.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Layer properties problem

2010-04-07 Thread padmini godavarthi

Hi,
Thanks for your reply.
 in propertySelect dropdown list i have the properties like
FeatId,Parcel,Area etc.
by putting

  alert(propertySelect[propertySelectselectedIndex].value)   as told by your
prev mail it gives me the numerical value of the selected index(for ex if i
select parcel it gives me 1)but i want to come as Parcel 


Regards,
Padmini G.
-- 
View this message in context: 
http://n2.nabble.com/Layer-properties-problem-tp4863462p4869217.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Problem with Find Address

2010-04-07 Thread padmini godavarthi

Hi,
iam just trying for the find address functionality in phpviewersample.

while running it i got this warnings and nothing is displayed..

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of xml_set_object(). If you
would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 83

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of array_unshift(). If you
would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 136

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of [runtime function
name](). If you would like to enable call-time pass-by-reference, you can
set allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 159

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of XML_unserialize(). If you
would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 168

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of [runtime function
name](). If you would like to enable call-time pass-by-reference, you can
set allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 190

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of [runtime function
name](). If you would like to enable call-time pass-by-reference, you can
set allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 205

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of [runtime function
name](). If you would like to enable call-time pass-by-reference, you can
set allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 247

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of [runtime function
name](). If you would like to enable call-time pass-by-reference, you can
set allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 251

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of [runtime function
name](). If you would like to enable call-time pass-by-reference, you can
set allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 270

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of [runtime function
name](). If you would like to enable call-time pass-by-reference, you can
set allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 275

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of XMLRPC_adjustValue(). If
you would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 319

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of XMLRPC_adjustValue(). If
you would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 395

Warning: Call-time pass-by-reference has been deprecated; If you would like
to pass it by reference, modify the declaration of XMLRPC_adjustValue(). If
you would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file in C:\Program
Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
line 401

Re: [mapguide-users] Problem with Find Address

2010-04-07 Thread Zac Spitzer
did you try setting

allow_call_time_pass_reference to true in your INI file ?

On 8 April 2010 15:42, padmini godavarthi godavarthi.padm...@gmail.com wrote:

 Hi,
 iam just trying for the find address functionality in phpviewersample.

 while running it i got this warnings and nothing is displayed..

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of xml_set_object(). If you
 would like to enable call-time pass-by-reference, you can set
 allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 83

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of array_unshift(). If you
 would like to enable call-time pass-by-reference, you can set
 allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 136

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of [runtime function
 name](). If you would like to enable call-time pass-by-reference, you can
 set allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 159

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of XML_unserialize(). If you
 would like to enable call-time pass-by-reference, you can set
 allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 168

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of [runtime function
 name](). If you would like to enable call-time pass-by-reference, you can
 set allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 190

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of [runtime function
 name](). If you would like to enable call-time pass-by-reference, you can
 set allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 205

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of [runtime function
 name](). If you would like to enable call-time pass-by-reference, you can
 set allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 247

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of [runtime function
 name](). If you would like to enable call-time pass-by-reference, you can
 set allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 251

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of [runtime function
 name](). If you would like to enable call-time pass-by-reference, you can
 set allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 270

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of [runtime function
 name](). If you would like to enable call-time pass-by-reference, you can
 set allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 275

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of XMLRPC_adjustValue(). If
 you would like to enable call-time pass-by-reference, you can set
 allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 319

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of XMLRPC_adjustValue(). If
 you would like to enable call-time pass-by-reference, you can set
 allow_call_time_pass_reference to true in your INI file in C:\Program
 Files\OSGeo\MapGuide\Web\www\phpviewersample\findaddress\kd_xmlrpc.php on
 line 395

 Warning: Call-time pass-by-reference has been deprecated; If you would like
 to pass it by reference, modify the declaration of 

[mapguide-users] Re: Problem with Find Address

2010-04-07 Thread padmini godavarthi

Hi,

Initially in php.in  is set to

allow_call_time_pass_referenc=off
i changed to 

allow_call_time_pass_referenc=on

is any other settings required?

Regards,
padmini G.
-- 
View this message in context: 
http://n2.nabble.com/Problem-with-Find-Address-tp4869309p4869335.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Re: Problem with Find Address

2010-04-07 Thread Zac Spitzer
well then you need to run the code again and see what happens...

On 8 April 2010 15:54, padmini godavarthi godavarthi.padm...@gmail.com wrote:

 Hi,

 Initially in php.in  is set to

 allow_call_time_pass_referenc=off
 i changed to

 allow_call_time_pass_referenc=on

 is any other settings required?

 Regards,
 padmini G.
 --
 View this message in context: 
 http://n2.nabble.com/Problem-with-Find-Address-tp4869309p4869335.html
 Sent from the MapGuide Users mailing list archive at Nabble.com.
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users




-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users