Dynamic Layers and dynamic Data

Harish Butani's Avatar

Harish Butani

15 Jan, 2012 05:29 AM via web

  1. Is there a way to add custom layers. Something like the following OpenLayers snippet:
    var vectorLayer = new OpenLayers.Layer.Vector("Overlay");
    var feature = new OpenLayers.Feature.Vector(
    new OpenLayers.Geometry.Point(-71, 42), {some:'data'}, {externalGraphic: 'img/marker.png', graphicHeight: 21, graphicWidth: 16}); vectorLayer.addFeatures(feature);
    map.addLayer(vectorLayer);

  2. A followup question is: is it possible to setup dynamic Dataset with a GeometryTable/AttributeTable. Possibly using a GeoJSON string. We are wondering if it is possible to combine our Application data with the available datasets and using the combined data in a Map.

  1. Support Staff 2 Posted by Boris Dev on 17 Jan, 2012 02:20 AM

    Boris Dev's Avatar
    1. Click here for an example of adding a Mapfluence layer to OpenLayers

    2. Please clarify: Are you asking if it possible to load your own data to the Mapfluence server and then render map tile layers based on that data you just loaded?

    Thanks.

  2. Boris Dev closed this discussion on 17 Jan, 2012 02:20 AM.

  3. Harish Butani re-opened this discussion on 17 Jan, 2012 09:42 PM

  4. 3 Posted by Harish Butani on 17 Jan, 2012 09:42 PM

    Harish Butani's Avatar

    Yes we are looking at scenario 2. Based on our User's interaction and profile we would like to dynamically render a Map: would like both content and styling to be dynamic.
    Is it possible to join Attributes from different Tables to come up with calculated values? An extension to this is to pass an inline Table in a Query ( I am equating this to SQL; I think all this is possible in PostGIS). We are wondering if you allow this through the Api.

    regards,
    Harish.

    --- On Mon, 1/16/12, Boris Dev <***@tenderapp.com> wrote:

    > From: Boris Dev <***@tenderapp.com>
    > Subject: Dynamic Layers and dynamic Data [Questions]
    > To: ***@vulcantrips.com
    > Date: Monday, January 16, 2012, 6:20 PM
    >

  5. Support Staff 4 Posted by Boris Dev on 17 Jan, 2012 10:21 PM

    Boris Dev's Avatar

    To calculate new values to map you can use expressions in the ``select``
    property of a map layer.

    Guide here:
    http://developer.urbanmapping.com/docs/mapfluence/js/2.0/guides/expressions
    /#guide-expressions
    Reference doc here:
    http://developer.urbanmapping.com/docs/mapfluence/js/2.0/reference/MF/expr

    Styling of the image tiles of map can also be customized by changing
    properties of a Mapfluence layer object such as border, styles, opacity
    and zoom. (example documentation:
    http://developer.urbanmapping.com/docs/mapfluence/js/2.0/reference/MF/layer
    /tile/Thematic)

    Here is a complete list of maps that can be made:
    http://developer.urbanmapping.com/docs/mapfluence/js/2.0/reference/MF/layer
    /tile/#MF.layer.tile

  6. Support Staff 5 Posted by Boris Dev on 17 Jan, 2012 10:25 PM

    Boris Dev's Avatar

    Fixed URL:

    http://developer.urbanmapping.com/docs/mapfluence/js/2.0/guides/expressions
    /#guide-expressions

  7. Support Staff 6 Posted by Boris Dev on 19 Jan, 2012 02:03 AM

    Boris Dev's Avatar

    x

  8. Boris Dev closed this discussion on 19 Jan, 2012 02:03 AM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

27 Apr, 2012 07:55 PM
07 Mar, 2012 08:14 PM
07 Mar, 2012 08:12 PM