Opened 12 years ago

Closed 12 years ago

#404 closed enhancement (fixed)

New Commercial Map Service Layer support - Open Street Map

Reported by: liuar Owned by: liuar
Priority: P2 Milestone: 2.2
Component: Core Version: 1.1.1
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: Committed

Description

This ticket enhanced the exsiting commercial map service layers by adding a new type of commercial layer - Open Street Map.

Currently, there are three types of renderer for Open Street Map: Mapnik, Osmarender and CircleMap.

To use Open Street Map(aka OSM) in Fusion, the Openlayer OSM script must be included in ApplicationDefinition document.

<Extension>
    <OpenStreetMapScript>
        http://www.openstreetmap.org/openlayers/OpenStreetMap.js
    </OpenStreetMapScript> 
</Extension>

A sample OSM map in MapGroup

  <Map>
    <Type>OpenStreetMap</Type> 
    <SingleTile>true</SingleTile> 
    <Extension>
      <ResourceId>OpenStreetMap</ResourceId> 
      <Options>
        <name>Open Street Map Mapnik</name> 
        <type>Mapnik</type> 
      </Options>
    </Extension>
  </Map>

Attachments (1)

Open Street Map.patch (11.6 KB ) - added by liuar 12 years ago.

Download all attachments as: .zip

Change History (4)

by liuar, 12 years ago

Attachment: Open Street Map.patch added

comment:1 by liuar, 12 years ago

Owner: changed from madair to liuar

comment:2 by madair, 12 years ago

Milestone: Future2.2

without having tested this, the patch looks ok to me. Some comments though:

  • you should be using curly brackets for your if/else statements in BasemapSwitcher.js
  • you can add the files required in the Fusion build of OpenLayers in the file fusion.cfg and remove the section of code in fusion.js that loads the extra OL file. part of the 2.2 release will be an update of OpenLayers to 2.10

I have changed the milestone to 2.2

comment:3 by liuar, 12 years ago

Resolution: fixed
state: NewCommitted
Status: newclosed

Thanks for the code review. Code submitted in Changeset [2221] by liuar

Note: See TracTickets for help on using tickets.