Lukkede

Write some code for infoboxes from geojson using Bing Maps SDK

Dette projekt blev tildelt til Appel for $30 AUD.

Få gratis pristilbud for et projekt som dette
Projektbudget
$10 - $30 AUD
Bud i alt
4
Projektbeskrivelse

Hi,

I'm teaching myself how to use Bing Maps SDK to create online maps. I'm having trouble creating infoboxes for my geojson feed & would appreciate it if someone could write the code.

Example:

[url removed, login to view]+JS

In the link above, if you click a point on the map, an infobox pops up with description/title.

Please cut'n paste the code below into the Bing Maps SDK javascript windows:

var map = new [url removed, login to view]([url removed, login to view]('myMap'), {

credentials: 'Your Bing Maps Key',

});

//Load GeoJSON module.

[url removed, login to view]('[url removed, login to view]', function () {

//Read the GeoJSON file that is hosted on a different domain but has CORs enabled.

[url removed, login to view]('[url removed, login to view]',

function (shapes) {

//Add the shape(s) to the map.

[url removed, login to view](shapes);

});

});

As you will see, when you click on the points from the geojson feed, they doesn't have infoboxes.

Below is an example of the attributes from the geojson feed:

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"OBJECTID":25,"ID":"CAM00080","Title":"MF/HODGES DR WEBCAM - CAM080","Direction":"NW","href":"[url removed, login to view]"},"geometry":{"type":"Point","coordinates":[[url removed, login to view],[url removed, login to view]]}},

Could you please write some code which addes infoboxes to my geojson points. Please populate the infobox with info from the geojson feed. For example:

ID: CAM00080

Title: MF/HODGES DR WEBCAMCAM080

Direction: NW

href: [url removed, login to view]

Lastly, if my geojson had info for a jpeg... I would like the photo to display in the infobox.

I will cut'n paste your code into the Bing Maps SDK to see how it works.

Hope that makes sense.

Please see this forum post if you need more info:

[url removed, login to view]

Look forward to hearing from you.

Cheers

Nick

Tildelt til:

Ønsker du at tjene nogle penge?

  • Fastsæt dit budget og din tidsramme
  • Beskriv dit forslag
  • Bliv betalt for dit arbejde

Ansæt Freelancere, der også bød på dette projekt

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online