Author |
Topic  |
|
Recycler
   
United Kingdom
211 Posts |
Posted - 14/09/2005 : 22:05:02
|
Eric:
In June you kindly extended the function of the mmMacro so that it was possible to pull a sleeping MapMaker to the front of a stack of displays and maximise it if is wasn't already so.
I've only just got to the point of implementing this live lookup idea on my Intranet website and it's starting to look really good.
Although I've set markers to show in the navigation settings, I find that although the map jumps to the right place on a goto macro instruction, the marker is not displayed at the time. If I subsequently select another point (say by a gazetteer choice) the marker for the earlier point is displayed briefly as the map zooms off to somewhere else. If it was a Gazetteer-mediated move, the new position will be marked, but if it is another Macro move, again the marker doesn't display until you move off once more.
Would it be possible, please, to arrange that if 'display markers' is selected on the underlying instance of MapMaker, that this works also for macro gotos?
Thanks and regards - Mike - |
|
mapmaker
    
470 Posts |
Posted - 21/09/2005 : 08:14:56
|
Mike I'm not clear what you mean by "I've set markers to show in the navigation settings". Can you clarify what you are referring to? Eric |
 |
|
davecope
United Kingdom
7 Posts |
Posted - 28/09/2005 : 12:45:09
|
To MapMaker,
What would you say is the likelihood of the macro program being extended?
Some of the actions I would find really useful and would make all the difference are; a) load/unload layers (shape, .LOC, .MME would be good) into the current Mapmaker window. b) load/save project files. c) control the layer stack. (show/hide/reorder). d) turn on/off labels. e) load a saved printing template and open a print dialog. (or just print). f) print_at(x,y,"some string","font_name",12pt).
I'd find these useful to "remote control" MM from a client application. I would not object to having to buy the pro version if these became pro specific.
Thanks for any insights.
Dave Cope, Biodiversity Information Service for Powys & Brecon Beacons National Park. |
 |
|
mapmaker
    
470 Posts |
Posted - 28/09/2005 : 15:42:22
|
Dave I was just about to write to you. If you download the latest update of MM and the revised version of "Technical Paper 8" you'll see that MMmacro has been extended to cover all these points except the last (print_at) which doesn't really fit in.
These new macros are only enabled in MM Pro.
Eric |
 |
|
davecope
United Kingdom
7 Posts |
Posted - 29/09/2005 : 09:01:11
|
quote: Originally posted by mapmaker
Dave I was just about to write to you. If you download the latest update of MM and the revised version of "Technical Paper 8" you'll see that MMmacro has been extended to cover all these points except the last (print_at) which doesn't really fit in.
These new macros are only enabled in MM Pro.
Eric
Many Thanks Eric, this is wonderful news. I appreciate the work done to extend the macro system.
Dave Cope, Biodiversity Information Service for Powys & Brecon Beacons National Park. |
 |
|
davecope
United Kingdom
7 Posts |
Posted - 29/09/2005 : 09:46:54
|
I've downloaded Technical Doc #8 and the macros provide all I was hoping for. Not mentioned in the document is the range of file types available in the "add layer" command.
Would I be right in thinking that any valid file type that can be added via the MM gui (e.g. Project Manager->Add Layer) could be specified within this command?
Thanks.
Dave Cope, Biodiversity Information Service for Powys & Brecon Beacons National Park. |
 |
|
mapmaker
    
470 Posts |
Posted - 29/09/2005 : 15:53:17
|
Would I be right in thinking that any valid file type that can be added via the MM gui (e.g. Project Manager->Add Layer) could be specified within this command?
Yes. Anything with the layer definition within a GEO file (e.g. the [Map-layer 1] group) can be specified. |
 |
|
davecope
United Kingdom
7 Posts |
Posted - 29/09/2005 : 16:51:28
|
quote: Originally posted by mapmaker Yes. Anything with the layer definition within a GEO file (e.g. the [Map-layer 1] group) can be specified.
Great. That takes care of loading up shape files from PostgreSQL/PostGIS.
I've only one more thought (sorry). Given that the macro takes one command string, I was wondering about the efficiency of being able to write a batch of commands in a file and then get mmmacro.exe to run that file in batch mode.
I guess any modification to mmmaco would require an internal parser for the batch file. I was going to write a wrapper around mmmacro to do this anyway, but a built in parser would be good at some point in the future.
Kind Regards,
Dave Cope, Biodiversity Information Service for Powys & Brecon Beacons National Park. |
 |
|
mapmaker
    
470 Posts |
Posted - 29/09/2005 : 18:11:20
|
Dave
If you download the latest update of MM then you can use MMmacro in the form:
"mmmacro.exe" "c:\my data\batch.txt"
where each line in the batch file contains one complete command line.
Eric |
 |
|
davecope
United Kingdom
7 Posts |
Posted - 30/09/2005 : 08:54:23
|
quote: Originally posted by mapmaker
Dave
If you download the latest update of MM then you can use MMmacro in the form:
"mmmacro.exe" "c:\my data\batch.txt"
where each line in the batch file contains one complete command line.
Eric
Thanks Eric! That has got to be one of the fastest turnaround for a feature request ever!  (Unless it was an undocumented facility )
Kind Regards.
Dave Cope, Biodiversity Information Service for Powys & Brecon Beacons National Park. |
 |
|
Recycler
   
United Kingdom
211 Posts |
Posted - 04/10/2005 : 19:11:21
|
Eric:
(Referring to your entry second from top, and with apologies for my absence from here since the original posting!) .....
"I'm not clear what you mean by "I've set markers to show in the navigation settings". Can you clarify what you are referring to?"
I simply meant that I'd tried the menu option Navigate | By Gazetteer, then checked the "Place marker flag on goto" box.
I'd like to add my thanks too for the extensions to the macro system you've clearly been busy at!
Cheers - Mike - |
 |
|
mapmaker
    
470 Posts |
Posted - 30/12/2005 : 12:55:05
|
if you use the macro:
command=zoom and goto,x=1234,y=5678,scale=10000,marker=hello world
then the latest update of MM will now add a marker with the specified caption. |
 |
|
mapmaker
    
470 Posts |
Posted - 03/01/2006 : 11:01:47
|
One small modification; if your marker contains a comma then the whole marker entry should be in single quotes:
command=zoom and goto,x=1234,y=5678,scale=10000,'marker=10, Acacia Avenue'
|
 |
|
Recycler
   
United Kingdom
211 Posts |
Posted - 03/01/2006 : 19:02:25
|
You're a star, Eric! Happy New year!
:) - Mike - |
 |
|
Philippe
    
France
295 Posts |
Posted - 20/05/2008 : 17:46:01
|
Could markers be saved? and cleared? |
 |
|
mapmaker
    
470 Posts |
Posted - 20/05/2008 : 18:05:46
|
Under "Edit - Markers" you can clear markers and also save markers as points. |
 |
|
Philippe
    
France
295 Posts |
Posted - 20/05/2008 : 19:34:47
|
quote: Originally posted by mapmaker
Under "Edit - Markers" you can clear markers and also save markers as points.
Sorry to be unclear. I meant doing something like : Shell("c:\...\MMmacro.exe" "command=clear markers",...) Shell("c:\...\MMmacro.exe" "command=save markers",...) |
 |
|
mapmaker
    
470 Posts |
Posted - 21/05/2008 : 12:00:38
|
OK There are now two new mmmacro commands: "command=clear markers" "command=save markers,filename=c:\map\markers.dra"
...where save markers saves the markers as points. |
 |
|
Philippe
    
France
295 Posts |
Posted - 21/05/2008 : 15:26:28
|
Thank you Eric. |
 |
|
N21
Ghana
6 Posts |
Posted - 15/08/2011 : 16:37:02
|
Hi,
I would like to know if there is a way to use the command "goto id" and to set a marker at the object location.
Thanks you in advance |
 |
|
mapmaker
    
470 Posts |
Posted - 17/08/2011 : 13:28:22
|
Yes, if you had a go to command like:
command=goto,x=123.456,y=789.123
.. then you could amend it to:
command=goto,x=123.456,y=789.123,marker=hello world
which will add a marker labelled "hello world" at that spot. the same applies to the "zoom and goto" command. |
 |
|
N21
Ghana
6 Posts |
Posted - 22/08/2011 : 10:18:43
|
But is it possible to have a command like
command=goto id, id=whatever, marker=hello world
and get a marker at the object (with regards to its id) position? |
 |
|
mapmaker
    
470 Posts |
Posted - 22/08/2011 : 15:40:38
|
MMMacro has been updated so that you can use the command "goto id" to place a marker, for example:
command=goto id,layer=forest compartments,id=plot 21,marker=hello world
You need to download the latest update of MM to use this. There is no need to update Mmmacro.exe |
 |
|
|
Topic  |
|