Changes between Version 38 and Version 39 of MapGuideRfc119


Ignore:
Timestamp:
Aug 2, 2011, 7:39:53 PM (13 years ago)
Author:
samwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc119

    v38 v39  
    3737}}}
    3838where '!FeatId' property is the property to identify a unique feature of the feature class. So the URL of a feature in this layer should be in the form 'map.google.com/fid=[!FeatId]' where [!FeatId] part will be replaced with the actual '!FeatId' property value for each feature. However if user wants to change the URL of a specific feature(and only this one) which turns out to be 'map.bing.com/fid=[!FeatId]' for some reason. It is obvious that we can not change URL element value that will affect all other features. So what we can do is to specify a property of the feature class that the layer is based on where we can store this overriden value.
     39
     40So when new shcema containing these information is applied(as proposed below), a sample of part of the XML should something look like:
     41<UrlData>
     42 <Content>Concat('map.google.com/location=', ADDRESS)</Content>
     43 <Description>Concat('Feature at location:', ADDRESS)</Description>
     44 <ContentOverride>URL</ContentOverride>
     45 <DescriptionOverride>DESCRIPTION</DescriptionOverride>
     46</UrlData>
     47
     48Normally, if a feature does not individually override its layer's setting. Then the URL and description of this feature of should be the evaluated value of the FDO expression specified. That is to say, if the ADDRESS property value of this feature is "627 5th Avenue", then the URL of this feature is "map.google.com/location=627 5th Avenue" and respectively description of this feature is "'Feature at location: 627 5th Avenue". Otherwise if user want to use a different URL, he can override this value and store it in URL property and if he wants to use a different URL description, he can store it in DESCRIPTION property.
    3949 
    4050== Proposed Solution ==