Infrastructure Map Server Developer

Infrastructure Map Server Developer

New Member
Posts: 1
Registered: ‎10-22-2009
Message 1 of 1 (571 Views)

Mapguide 6.5 buffer

571 Views, 0 Replies
10-22-2009 10:19 PM
Hi, im kinda new to mapguide programming, im using MapGuide 6.5 viewer. My application builds a route beginning from a start point to an end point. After several calculations and database queries, the route coordinates are sent to mapguide. The route is drawn in a layer called "ROUTE".

After that, i create a buffer of 100m around the route via javascript, in order to make an analysis. The analysis should bring all the gas stations that are inside the buffer area. This gas stations are in another layer, lets suppose its called "GASSTATIONS";

The problem is that, I cant select the buffer area so i can use the selectWithin() function. I'm doing everything with javascript.

I guess this is somehow the code, please correct me if im wrong

The route is already selected automatically after its creation, after that, there is a button which calls this function.

function buffer()
var map = getMap();
var buffer_layer = map.viewBuffer();
..... customizing buffer
var map_selection = map.getSelection();
var buffer_feature = buffer_layer.getMapObject(); <---which is the key for the buffer object?
map.selectWithin(); <---I dont know which are the arguments for this function

so far, thats what ive figured out, i wonder if you could please give me a hand with this. thanks in advance.

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.