Re: [pmapper-users] General questions
Hi Armin, Thx a lot for your precious help once again! I will follow you suggestions, feedback asap. Some precisions: 2) Here is my class of a polygon layer: CLASS STYLE COLOR [COLOR_RGB] END END Each polygon has its color defined in the 'color_rgb' attribute of the shapefile. My goal would be to have a legend for every colored polygon. I guess it is not feasable as the legend will need a different NAME for each color, which is impossible that way. 6) I have a 'Warning' layer that I want to be displayed if 'MyLayer1' or if 'MyLayer2' are selected. Actually it would be an opposite behaviour of the option, and would avoid duplicating the 'Warning' layer. In the 'Warning" layer, I tried to specify 2 groups: GROUP "MyGroup1" GROUP "MyGroup2" But only the second one is taken into account. If you have any idea... Cheers, Chris On Thu, Feb 28, 2013 at 11:32 PM, Armin Burger wrote: > On 02/28/2013 03:59 PM, Chris forum wrote: > > Hi all, > > > > > > > > pmapper 4.3 (Plainlayout4 / swap legend tab) > > mapserver 6.2 > > php 5.3.3-7 > > Debian server > > > > > > > > > > > > Bunch of general questions about p.mapper 4.3: > > > > > > > > 1) Is there a way to sort the legend entries automatically according to > the > > class names? > > you need to modify some PHP code for this in legend.php. You will have > to sort the $classList array/dictionary by the name or description > before writeClasses is called. I guess some debug output is required to > understand the array structure. > > > > 2) When using COLOR [attribute], is it possible to populate the legend > with > > the different attribute values? > > I don't understand the question > > > > 3) What are the resetsession parameters available? I know 'ALL' and > > 'GROUPS' so far. > > all session parameters can be reset, check the PHP session variables, > there is a tool at > http://svn.pmapper.net/trac/browser/trunk/utils/readsession.php > > that produces a better readable output > > > > > 4) After a research or when using the Select tool, an object is > highlighted > > on the map. How can we unselect it? > > the map reload button does this. It can be any tool that calls the > function PM.Map.clearInfo() > > > > > 5) Where is specified the tool to be selected by default at startup? > > PM.Map.domouseclick('zoomin'); > PM.setTbTDButton('zoomin'); > > must be called with the desired tool after startup (maybe the first of > them is not needed though) > > > > > 6) Can a layer belongs to more than 1 group? > > just try and see if it does what you expect... > > > > > 7) Is there a way to show the attribute value in the hyperlink of a > result > > table. For instance: > > > > "RESULT_HYPERLINK" "*AttributeValue*||link to attribute *AttributeValue*" > > you could try to modify the Javascript template for the query, but > that's a bit difficult to understand I fear if you don't know JS code > well... > > > > > 8) How can I set the zoom at startup to be fixed at 100'000, > independantly > > of the map window size? So that when using the mouse scroll to zoom in, > > zoom levels are plain numbers (fractions of 100'000) and not something > like > > 51'900, 25'950,… > > you need to call the function >PM.Map.zoom2scale(scale) > after startup. Could be put in a plugin as well. > > > > > > > > > Regards, > > > > Chris > > > -- > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_feb > > ___ > > pmapper-users mailing list > > pmapper-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > > > > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > ___ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
Re: [pmapper-users] General questions
On 02/28/2013 03:59 PM, Chris forum wrote: > Hi all, > > > > pmapper 4.3 (Plainlayout4 / swap legend tab) > mapserver 6.2 > php 5.3.3-7 > Debian server > > > > > > Bunch of general questions about p.mapper 4.3: > > > > 1) Is there a way to sort the legend entries automatically according to the > class names? you need to modify some PHP code for this in legend.php. You will have to sort the $classList array/dictionary by the name or description before writeClasses is called. I guess some debug output is required to understand the array structure. > 2) When using COLOR [attribute], is it possible to populate the legend with > the different attribute values? I don't understand the question > 3) What are the resetsession parameters available? I know 'ALL' and > 'GROUPS' so far. all session parameters can be reset, check the PHP session variables, there is a tool at http://svn.pmapper.net/trac/browser/trunk/utils/readsession.php that produces a better readable output > > 4) After a research or when using the Select tool, an object is highlighted > on the map. How can we unselect it? the map reload button does this. It can be any tool that calls the function PM.Map.clearInfo() > > 5) Where is specified the tool to be selected by default at startup? PM.Map.domouseclick('zoomin'); PM.setTbTDButton('zoomin'); must be called with the desired tool after startup (maybe the first of them is not needed though) > > 6) Can a layer belongs to more than 1 group? just try and see if it does what you expect... > > 7) Is there a way to show the attribute value in the hyperlink of a result > table. For instance: > > "RESULT_HYPERLINK" "*AttributeValue*||link to attribute *AttributeValue*" you could try to modify the Javascript template for the query, but that's a bit difficult to understand I fear if you don't know JS code well... > > 8) How can I set the zoom at startup to be fixed at 100'000, independantly > of the map window size? So that when using the mouse scroll to zoom in, > zoom levels are plain numbers (fractions of 100'000) and not something like > 51'900, 25'950,… you need to call the function PM.Map.zoom2scale(scale) after startup. Could be put in a plugin as well. > > > > Regards, > > Chris > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > ___ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users
[pmapper-users] General questions
Hi all, pmapper 4.3 (Plainlayout4 / swap legend tab) mapserver 6.2 php 5.3.3-7 Debian server Bunch of general questions about p.mapper 4.3: 1) Is there a way to sort the legend entries automatically according to the class names? 2) When using COLOR [attribute], is it possible to populate the legend with the different attribute values? 3) What are the resetsession parameters available? I know 'ALL' and 'GROUPS' so far. 4) After a research or when using the Select tool, an object is highlighted on the map. How can we unselect it? 5) Where is specified the tool to be selected by default at startup? 6) Can a layer belongs to more than 1 group? 7) Is there a way to show the attribute value in the hyperlink of a result table. For instance: "RESULT_HYPERLINK" "*AttributeValue*||link to attribute *AttributeValue*" 8) How can I set the zoom at startup to be fixed at 100'000, independantly of the map window size? So that when using the mouse scroll to zoom in, zoom levels are plain numbers (fractions of 100'000) and not something like 51'900, 25'950,… Regards, Chris -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users