<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
So you want to replace the map when a user clicks a point?<br>
In the layout, set the link target to "top" (or optionally the name of
the frame the map is in).<br>
Then create a tooltip+link on the relevant layer, where the link points
to the desired url, eg.: '<a class="moz-txt-link-freetext" href="http://mapguide.osgeo.org">http://mapguide.osgeo.org</a>'.<br>
Now the user can ctrl+click the link to open the new page, the target
ensures that the page is opened in the same window.<br>
<br>
If you must have it as a tool, you will have to edit some of the viewer
files.<br>
I think you would start out in the file ajaxmappane.templ.<br>
Beware that this is a bit tricky, because the user may click on a spot
with no data.<br>
Also, note that the tools and commands have numbers, and there is not a
1:1 correspondance.<br>
<br>
If you don't want other tools avalible, you can get MapGuide to just
generate a PNG.<br>
In html, you can then use a tag like: <br>
&lt;img src="..." onclick="top.location.href='...';" /&gt;<br>
<br>
You may get away with hijacking the onclick for the map, rather than go
trough with building a custom tool.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
gimbrogno @smartlab skrev:
<blockquote cite="mid:17820378.post@talk.nabble.com" type="cite">
  <pre wrap="">Ah ok, but I want to create a web page that when the click in a point on the
map it opens a new link page in the central frame  (where is the map)...



Kenneth Skovhede, GEOGRAF A/S wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Inside Studio.

At the bottom grid ("New Commands"), click "Add"  -&gt; "Invoke URL".

Regards, Kenneth Skovhede, GEOGRAF A/S



gimbrogno @smartlab skrev:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Thanks...

Another question, where I must to create this new function ? In the
mainframe.jsp or where?

Thanks a lot...



Kenneth Skovhede, GEOGRAF A/S wrote:
  
      </pre>
      <blockquote type="cite">
        <pre wrap="">No, not directly.
You can create a new function that opens a page, and make it look like 
the "select button" instead.

Regards, Kenneth Skovhede, GEOGRAF A/S



gimbrogno @smartlab skrev:
    
        </pre>
        <blockquote type="cite">
          <pre wrap="">Hi, I have built an example web layout with a map using Mapguide
Studio.
There is a metod that customize the function of "select button", for
example
to open a new page?

Thanks a lot...
  
      
          </pre>
        </blockquote>
        <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    
        </pre>
      </blockquote>
      <pre wrap="">  
      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>