More on that...
"Annotation layers are deprecated in 6.2 and will probably be removed in a
future version."
For the layer "drawAnnotation", simply replace TYPE ANNOTATION by TYPE POINT

I have also added POSTLABELCACHE ON to all the drawing layers, so that they
are on top of other layers

And to limit the comment length to 30 characters for instance, insertTXT
has been modified like this in drawing_base.js:
insertTxt: function(point) {
        jg.setFont(this.fontFamily,this.fontSize,this.fontStyle); //set
font-family, -size and -style values

        var insertTxt = prompt(*(_p('Add comment:')+ '\n \t (' + _p('30
char. max') + ')'), ''*); //user can enter his text
        if (insertTxt == null) {
         insertTxt = '';
        }
        *else if (insertTxt.length > 30)**
         insertTxt = insertTxt.substring(0,30); *

Hope that helps

Looking now if there is a way to keep the drawing in the URL of a generated
link...

Cheers,
Chris


On Fri, Feb 8, 2013 at 1:04 PM, Chris forum <bak.fo...@gmail.com> wrote:

> Salut Thomas,
>
> Thanx for the fast answer!
>
> 1) My bad, I think I mixed things from what I found in the drawing.js and
> the text displayed... Text is mentionning DEL key to erase last point
> drawn, not ESC as I said, sorry. I will just add the ESC part to the info
> text.
>
> 2) and 3) Will look into that as I am now using MS 6.2, never tried CIRCLE
> object yet. Looks like it needs a bbox to draw the circle inside it, which
> could be an adaptation of the rectangle method...
>
> 4) I did, just mentionned it here for help purpose
>
> 5) I am not using Hatch for drawing, just tried though but it doesn't seem
> to work with the drawing plugin/template.map, while it works fine in the
> main mapfile. See here<http://www.imagerun.info/img134/afebzfcguxca8j02.png>,
> both the rectangle and the area on its right are using these style values
> (except color):
>       STYLE
>          SYMBOL 'hatch'
>          COLOR 20 20 20
>          ANGLE 135
>          SIZE 5
>          WIDTH 1
>       END
> Same with you?
>
> 6) Had that apache error showing up:
> [Wed Feb 06 16:13:49 2013] [error] [client 10.45.113.9] File does not
> exist:
> /var/www/dev/newgc_svn/pmapper430/images/buttons/chameleon/drawing_off.*
> png*
>
> 7) Can not reproduce the comment length cut today, must have been a side
> effet of the label ANGLE FOLLOW I was trying yesterday with the LINE
> drawing. Will check how to add a max length value.
>
> See you, thanx for this great plugin!
> Chris
>
>
>
>
> On Thu, Feb 7, 2013 at 5:54 PM, Thomas RAFFIN <traf...@sirap.fr> wrote:
>
>>
>> Le 07/02/2013 17:16, Chris forum a écrit :
>> > Hi all,
>> >
>> > Working on a pmapper 4.3 project, just installed the 'Drawing' plugin.
>> >
>> > Works well,
>>
>> Hi,
>>
>> Thanks
>>
>>
>> > except for some details:
>>
>> :-(
>>
>> >
>> > 1) ESC key doesn't erase the last point of a POLYGON or a LINE (as
>> stated
>> > in the info text), but the entire drawing
>>
>> I will check the text. The key should be :
>> - DEL to remove the last point
>> - ESC to delete the entire drawing
>>
>> > 2) For the CIRCLE, there is no window poping up letting us adding a
>> > comment. Must be an issue with that layer, as the Labelitem tag was
>> > commented in the source. Any more info on that?
>>
>> We didn't know how to draw circle (it was with MS 5.4) except like it is
>> done in the template.map (see "drawCircle" layer) : unit is meter and
>> size is the radius value. If you have an other solution, feel free to
>> post it.
>>
>>
>> > 3) If the map is panned and the center of a CIRCLE is no more visible,
>> the
>> > entire circle is not displayed
>>
>> Yes, due to point 2...
>>
>>
>> > 4) It misses an offset (0 -14 in my project) not to have the POINT
>> hidden
>> > behind its label
>>
>> Feel free to change the template.map, the symbols, etc... in your project.
>>
>> > (5) Styles have to be modified if using Mapserver 6, no symbol needed
>> > anymore for polygons or lines)
>>
>> Does it works with hatched polygons in your project?
>>
>> > (6) Code is waiting for .png image button, .gif provided ;)
>>
>> Where please?
>>
>> >
>> > Did anyone encountered the same and found a way to solve points 1), 2)
>> and
>> > 3)?
>>
>> 1: just change the language file.
>> 2 and 3: try to change the layer type from point to circle and customize
>> the template.map. But I remember other bugs due to small or big scales...
>>
>> >
>> > Finally, where is stated the max length of a comment? Looks like text
>> with
>> > lots of characters are not displayed, which is good, but I would like to
>> > add it to the info text.
>>
>> How many characters for instance please?
>>
>> >
>> > Thanx
>> > Chris
>>
>> Bye
>>
>> Thomas
>>
>> >
>> ------------------------------------------------------------------------------
>> > Free Next-Gen Firewall Hardware Offer
>> > Buy your Sophos next-gen firewall before the end March 2013
>> > and get the hardware for free! Learn more.
>> > http://p.sf.net/sfu/sophos-d2d-feb
>> > _______________________________________________
>> > pmapper-users mailing list
>> > pmapper-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/pmapper-users
>> >
>> >
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Free Next-Gen Firewall Hardware Offer
>> Buy your Sophos next-gen firewall before the end March 2013
>> and get the hardware for free! Learn more.
>> http://p.sf.net/sfu/sophos-d2d-feb
>> _______________________________________________
>> pmapper-users mailing list
>> pmapper-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>
>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to